phpunit-globals

Allows to use attributes to define global variables in PHPUnit test cases

MIT License

Downloads
222.2K
Stars
39
Committers
9

Bot releases are hidden (Show)

phpunit-globals - PHPUnit 9 support

Published by jakzal over 4 years ago

  • Fix the extension with methods annotated with a @dataProvider (thanks @fzieris) #14
  • Allow the extension to be installed with PHPUnit 9
phpunit-globals - Maintenance release

Published by jakzal almost 5 years ago

Run tests on PHP 7.4.

phpunit-globals - Phar release built with the update version of box

Published by jakzal over 5 years ago

  • #11
phpunit-globals - Hook based PHPUnit extension

Published by jakzal over 5 years ago

  • migrate to the new hook based PHPUnit extension system
phpunit-globals - PHPUnit 8 support

Published by jakzal over 5 years ago

  • minimum PHP version required raised to 7.2
  • minimum supported PHPUnit version required raised to 8.0
phpunit-globals - putenv support

Published by jakzal about 6 years ago

  • restores environment variables defined with putenv(), after each test case is executed
  • defines environment variables based on @putenv annotation on the test case class and methods
phpunit-globals - Phar tests

Published by jakzal about 6 years ago

  • Verify the built phar package is usable (#6)
phpunit-globals - Ignore inessential files from git export

Published by jakzal over 6 years ago

phpunit-globals - Phar release

Published by jakzal over 6 years ago

  • start distributing the extension as a phar
phpunit-globals - Namespace global PHP function calls

Published by jakzal over 6 years ago

phpunit-globals - Require PHP 7.1 minimum

Published by jakzal over 6 years ago

phpunit-globals - Support for @server and @env annotations

Published by jakzal over 6 years ago

The first stable release includes an assertion listener that:

  • restores $_SERVER and $_ENV global variables after each test case is executed
  • defines $_SERVER and $_ENV global variables based on @server and @env annotations on the test case class and methods
Package Rankings
Top 4.02% on Packagist.org
Badges
Extracted from project README
Build
Related Projects