phpunit-globals
phpunit-globals copied to clipboard
Also parse classes parent's attributes
trafficstars
If this is an acceptable change I will add tests.
To add some context: I have a set of test cases that share some different settings and would like to add an abstract test case as a base for them.
#[\Zalas\PHPUnit\Globals\Attribute\Server('MY_SETTING', 'value')]
abstract SpecialTestCase extends \PHPUnit\Framework\TestCase {
// ...
}
final class SpecificTest extends SpecialTestCase {
// ...
}
It does make sense. It needs to be done carefully though. There might be a performance impact while trying to parse the base phpunit test case (which I see you’re preventing👍).
Closing due to inactivity. If you're still interested in contributing this, feel free to resubmit 👍