From af68030fcf0c266300feb2c100149ecadef7d364 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 16 Jul 2006 01:50:23 +0000 Subject: Merge from 3.0 branch till 1264. --- .../simpletest/docs/en/unit_test_documentation.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'tests/test_tools/simpletest/docs/en/unit_test_documentation.html') diff --git a/tests/test_tools/simpletest/docs/en/unit_test_documentation.html b/tests/test_tools/simpletest/docs/en/unit_test_documentation.html index 6aa8d8a7..47b61eca 100755 --- a/tests/test_tools/simpletest/docs/en/unit_test_documentation.html +++ b/tests/test_tools/simpletest/docs/en/unit_test_documentation.html @@ -21,9 +21,6 @@ Group tests
  • -Server stubs -
  • -
  • Mock objects
  • @@ -162,6 +159,12 @@ class FileTestCase extends UnitTestCase { assertNotEqual($x, $y)Fail if $x == $y is true + + +assertWithinMargin($x, $y, $m)Fail if abs($x - $y) < $m is false + + +assertOutsideMargin($x, $y, $m)Fail if abs($x - $y) < $m is true assertIdentical($x, $y)Fail if $x == $y is false or a type mismatch @@ -176,19 +179,19 @@ class FileTestCase extends UnitTestCase { assertCopy($x, $y)Fail if $x and $y are the same variable -assertWantedPattern($p, $x)Fail unless the regex $p matches $x +assertPattern($p, $x)Fail unless the regex $p matches $x -assertNoUnwantedPattern($p, $x)Fail if the regex $p matches $x +assertNoPattern($p, $x)Fail if the regex $p matches $x assertNoErrors()Fail if any PHP error occoured -assertError($x)Fail if no PHP error or incorrect message +assertError($x)Fail if no PHP error or incorrect message/expectation -assertErrorPattern($p)Fail unless the error matches the regex $p +assertExpectation($e)Fail on failed expectation object @@ -226,7 +229,7 @@ $this->assertReference($a, $b); Will fail as the variable $a is a copy of $b.
    -$this->assertWantedPattern('/hello/i', 'Hello world');
    +$this->assertPattern('/hello/i', 'Hello world');
     
    This will pass as using a case insensitive match the string hello is contained in Hello world. -- cgit v1.2.3