xp-framework / unittest

Unittests for the XP Framework
0 stars 0 forks source link

Add Hack attributes support #1

Closed thekid closed 6 years ago

thekid commented 9 years ago

PHP

#[@test]
public function succeeds() { }

#[@test, @expect(IllegalArgumentException::class)]
public function throws() { }

Hack

<<test>>
public function succeeds() { }

<<test, expect('lang.IllegalArgumentException')>>
public function throws() { }
thekid commented 9 years ago

Could be realized by migrating to xp-forge/mirrors which already supports Hack attributes; but that would also bump the minimum PHP version to 5.6

thekid commented 6 years ago

Supported via XP Compiler transparently.