I am using simpletest.org
class test extends unitTestCase{
function test_pass (){
$bool=false;
$this->assertFalse($bool) ;
}
}
| assertTrue($x) | asserts that $x is true |
| assertFalse($x) | asserts that $x is false |
| assertEqual($x, $y) | asserts that $x is equivalent to $y |
| asserNotEqual($x, $y) | asserts that $x is not equal to $y |
| assertNull($x) | asserts that $x is null |
| assertNotNull($x) | asserts that $x is not null |
| assertIsA($x, $t) | asserts that $x is of type $t |
| assertNotA($x, $t) | asserts that $x is not of type $t |
| assertWithinMargin($x, $y, $m) | asserts that |$x-$y| < $m is true |
| assertOutsideMargin($x, $y, $m) | asserts that |$x-$y| < $m is false |
| assertIdentical($x, $y) | asserts that $x == $y and that $x and $y are of the same type |
| asserNotIdentical($x, $y) | asserts that either $x != $y and/or $x and $y are of a different type |
| assertClone($x, $y) | asserts that $x and $y are identical copies |
| assertReference($x, $y) | asserts that $x and $y are the same variable |
| assertPattern($p, $x) | asserts that the regular expression $p matches $x |
| assertNoPattern($p, $y) | asserts that the regular expression $p doesn't match $x |
| expectError($x) | swallows any upcoming matching error |
| assert($e) | asserts that we get error error $e |
No comments:
Post a Comment