cvs: pear /PHPUnit2/Framework TestCase.php Warning.php /PHPUnit2/Tests/Framework AssertTest.php Failure.php
| From: | Sebastian Bergmann | Date: | Sat, 17 Apr 2004 19:36:39 +0000 |
| Subject: | cvs: pear /PHPUnit2/Framework TestCase.php Warning.php /PHPUnit2/Tests/Framework AssertTest.php Failure.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-18355@lists.php.net to get a copy of this message | ||
sebastian Sat Apr 17 15:36:39 2004 EDT
Modified files:
/pear/PHPUnit2/Framework TestCase.php Warning.php
/pear/PHPUnit2/Tests/Framework AssertTest.php Failure.php
Log:
self::fail() -> $this->fail(). No functional change.
http://cvs.php.net/diff.php/pear/PHPUnit2/Framework/TestCase.php?r1=1.3&r2=1.4&ty=u
Index: pear/PHPUnit2/Framework/TestCase.php
diff -u pear/PHPUnit2/Framework/TestCase.php:1.3 pear/PHPUnit2/Framework/TestCase.php:1.4
--- pear/PHPUnit2/Framework/TestCase.php:1.3 Thu Apr 15 12:59:40 2004
+++ pear/PHPUnit2/Framework/TestCase.php Sat Apr 17 15:36:39 2004
@@ -12,7 +12,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: TestCase.php,v 1.3 2004/04/15 16:59:40 sebastian Exp $
+// $Id: TestCase.php,v 1.4 2004/04/17 19:36:39 sebastian Exp $
//
require_once 'PHPUnit2/Framework/Assert.php';
@@ -227,7 +227,7 @@
}
catch (Exception $e) {
- self::fail($e->getMessage());
+ $this->fail($e->getMessage());
}
if (extension_loaded('xdebug')) {
http://cvs.php.net/diff.php/pear/PHPUnit2/Framework/Warning.php?r1=1.2&r2=1.3&ty=u
Index: pear/PHPUnit2/Framework/Warning.php
diff -u pear/PHPUnit2/Framework/Warning.php:1.2 pear/PHPUnit2/Framework/Warning.php:1.3
--- pear/PHPUnit2/Framework/Warning.php:1.2 Thu Apr 15 11:02:33 2004
+++ pear/PHPUnit2/Framework/Warning.php Sat Apr 17 15:36:39 2004
@@ -12,7 +12,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: Warning.php,v 1.2 2004/04/15 15:02:33 sebastian Exp $
+// $Id: Warning.php,v 1.3 2004/04/17 19:36:39 sebastian Exp $
//
/**
@@ -51,7 +51,7 @@
* @access protected
*/
protected function runTest() {
- self::fail($this->message);
+ $this->fail($this->message);
}
// }}}
http://cvs.php.net/diff.php/pear/PHPUnit2/Tests/Framework/AssertTest.php?r1=1.4&r2=1.5&ty=u
Index: pear/PHPUnit2/Tests/Framework/AssertTest.php
diff -u pear/PHPUnit2/Tests/Framework/AssertTest.php:1.4
pear/PHPUnit2/Tests/Framework/AssertTest.php:1.5
--- pear/PHPUnit2/Tests/Framework/AssertTest.php:1.4 Fri Apr 16 06:47:10 2004
+++ pear/PHPUnit2/Tests/Framework/AssertTest.php Sat Apr 17 15:36:39 2004
@@ -12,7 +12,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: AssertTest.php,v 1.4 2004/04/16 10:47:10 sebastian Exp $
+// $Id: AssertTest.php,v 1.5 2004/04/17 19:36:39 sebastian Exp $
//
require_once 'PHPUnit2/Framework/TestCase.php';
@@ -30,14 +30,14 @@
class PHPUnit2_Tests_Framework_AssertTest extends PHPUnit2_Framework_TestCase {
public function testFail() {
try {
- self::fail();
+ $this->fail();
}
catch (PHPUnit2_Framework_AssertionFailedError $e) {
return;
}
- self::fail();
+ $this->fail();
}
public function testAssertEquals() {
@@ -83,7 +83,7 @@
return;
}
- self::fail();
+ $this->fail();
}
public function testAssertNotNull() {
@@ -97,7 +97,7 @@
return;
}
- self::fail();
+ $this->fail();
}
public function testAssertTrue() {
@@ -111,7 +111,7 @@
return;
}
- self::fail();
+ $this->fail();
}
public function testAssertFalse() {
@@ -125,7 +125,7 @@
return;
}
- self::fail();
+ $this->fail();
}
public function testAssertSame() {
@@ -144,7 +144,7 @@
return;
}
- self::fail();
+ $this->fail();
}
public function testAssertNotSame() {
@@ -173,7 +173,7 @@
return;
}
- self::fail();
+ $this->fail();
}
public function testAssertNotSameFailsNull() {
@@ -185,7 +185,7 @@
return;
}
- self::fail();
+ $this->fail();
}
}
http://cvs.php.net/diff.php/pear/PHPUnit2/Tests/Framework/Failure.php?r1=1.3&r2=1.4&ty=u
Index: pear/PHPUnit2/Tests/Framework/Failure.php
diff -u pear/PHPUnit2/Tests/Framework/Failure.php:1.3 pear/PHPUnit2/Tests/Framework/Failure.php:1.4
--- pear/PHPUnit2/Tests/Framework/Failure.php:1.3 Thu Apr 15 11:02:35 2004
+++ pear/PHPUnit2/Tests/Framework/Failure.php Sat Apr 17 15:36:39 2004
@@ -12,7 +12,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: Failure.php,v 1.3 2004/04/15 15:02:35 sebastian Exp $
+// $Id: Failure.php,v 1.4 2004/04/17 19:36:39 sebastian Exp $
//
require_once 'PHPUnit2/Framework/TestCase.php';
@@ -27,7 +27,7 @@
*/
class PHPUnit2_Tests_Framework_Failure extends PHPUnit2_Framework_TestCase {
public function runTest() {
- self::fail();
+ $this->fail();
}
}