cvs: pear /PHPUnit/Framework TestCase.php
| From: | Sebastian Bergmann | Date: | Sun, 28 Sep 2003 06:23:20 +0000 |
| Subject: | cvs: pear /PHPUnit/Framework TestCase.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13146@lists.php.net to get a copy of this message | ||
sebastian Sun Sep 28 02:23:20 2003 EDT
Modified files:
/pear/PHPUnit/Framework TestCase.php
Log:
Execute test case method on correct object. Noticed by Shane Caraveo <shane@caraveo.com>.
Index: pear/PHPUnit/Framework/TestCase.php
diff -u pear/PHPUnit/Framework/TestCase.php:1.5 pear/PHPUnit/Framework/TestCase.php:1.6
--- pear/PHPUnit/Framework/TestCase.php:1.5 Thu Jul 24 02:39:52 2003
+++ pear/PHPUnit/Framework/TestCase.php Sun Sep 28 02:23:20 2003
@@ -12,7 +12,7 @@
// | license@php.net so we can mail you a copy immediately. |
// +------------------------------------------------------------------------+
//
-// $Id: TestCase.php,v 1.5 2003/07/24 06:39:52 sebastian Exp $
+// $Id: TestCase.php,v 1.6 2003/09/28 06:23:20 sebastian Exp $
//
require_once 'PHPUnit/Framework/Assert.php';
@@ -175,7 +175,7 @@
self::fail($e->getMessage());
}
- $method->invoke(new $class->name);
+ $method->invoke($this);
}
// }}}