Use a base test class instead of a listener
To convert existing tests to use the base class use perl -p -i -e 's/PHPUnit_Framework_TestCase/SimpleSAML\\Test\\Utils\\ClearStateTestCase/g' `grep -rl PHPUnit_Framework_TestCase tests | grep -v ClearStateTestCase.php`
Showing
- lib/SimpleSAML/Configuration.php 1 addition, 1 deletionlib/SimpleSAML/Configuration.php
- tests/Utils/ClearStateTestCase.php 46 additions, 0 deletionstests/Utils/ClearStateTestCase.php
- tests/Utils/ClearStateTestListener.php 0 additions, 78 deletionstests/Utils/ClearStateTestListener.php
- tests/Utils/ReduceSpillOverTest.php 38 additions, 0 deletionstests/Utils/ReduceSpillOverTest.php
- tests/Utils/StateClearer.php 76 additions, 0 deletionstests/Utils/StateClearer.php
- tests/bootstrap.php 7 additions, 0 deletionstests/bootstrap.php
- tools/phpunit/phpunit.xml 1 addition, 5 deletionstools/phpunit/phpunit.xml
Loading
Please register or sign in to comment