File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -42,20 +42,24 @@ require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'a
42
42
use mageekguy\atoum\phpunit;
43
43
44
44
$extension = new phpunit\extension($script);
45
-
46
45
$extension->addToRunner($runner);
47
46
```
48
47
49
48
## Use it
50
49
51
- You must change the parent class of your tests. For example, instead of ` PHPUnit\Framework\TestCase ` , extend ` mageekguy\atoum\phpunit ` .
50
+ By default, everything should work, simply run ` atoum ` as usual and
51
+ your test suites will execute.
52
+
53
+ If you want to switch a test suite from PHPUnit to atoum, and get all
54
+ the features from atoum, replace the parent class of your test suites
55
+ from ` PHPUnit\Framework\TestCase ` to ` mageekguy\atoum\phpunit ` :
52
56
53
57
``` diff
54
58
- class EnumTest extends \PHPUnit\Framework\TestCase
55
59
+ class EnumTest extends \mageekguy\atoum\phpunit
56
60
```
57
61
58
- And from now, use atoum as usual. Enjoy!
62
+ Enjoy!
59
63
60
64
## Support
61
65
You can’t perform that action at this time.
0 commit comments