From b2e97539e7af7712b04dd5c2610a454d09aa0333 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 7 Jul 2006 23:18:19 +0000 Subject: Update simpletest --- .../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