Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atoum to PHPUnit Shim

Assists with the migration from the Atoum testing framework to PHPUnit. This library attempts to map the Atoum assertions and other methods to PHPUnit to allow tests written for Atoum to run within the PHPUnit engine with minimal modifications.

If you use the lifecycle methods setUp, tearDown, beforeTestMethod, or afterTestMethod in your tests, you must change them to the PHPUnit equivalents. This is because in Atoum, setUp and tearDown are done before and after all the tests in the class are run. However, in PHPUnit they are done before and after each test method is run.

Current Features/Support:

Feature Support Notes
afterDestructionOf Yes
array Yes
assert No
boolean Yes
castToArray Yes
castToString Yes
class Yes
dateInterval Yes
dateTime Yes
error Yes
exception Yes
extension Yes
float Yes
function No
generator No
given/if/and/then Yes
hash Yes
integer Yes
mock No
mysqlDateTime Partial
object Partial
output Yes
resource Yes
sizeOf Yes
stream No
string Yes
testedClass/testedInstance/newTestedInstance No
utf8String Yes
variable Yes
when Yes

About

Run existing tests made for Atoum in PHPUnit

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages