Created
March 30, 2012 17:09
-
-
Save ludofleury/2253007 to your computer and use it in GitHub Desktop.
Atoum asserters vs PHPUnit asserters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Atoum asserters | |
$this->assert | |
->integer(150) | |
->isGreaterThan(100) | |
->isLowerThanOrEqualTo(200); | |
// PHPunit asserters | |
$this->assertInternalType('int', 150); | |
$this->assertGreaterThan(100, 150); | |
$this->assertLessThanOrEqual(200, 150); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment