diff options
author | uckelman <uckelman@nomic.net> | 2010-05-09 15:38:49 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-05-09 15:38:49 +0000 |
commit | 41507db4763193add8ad711190657e40a805effc (patch) | |
tree | 7380f0aedc0ce4f00d0fbea7fec4dc37253abc0f /test | |
parent | 082cbe6a95c07c82a96ae70668c51b111e21edd5 (diff) |
Fixed class var.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6814 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'test')
-rw-r--r-- | test/HTTP_POST_multipartTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/HTTP_POST_multipartTest.php b/test/HTTP_POST_multipartTest.php index 036f1cd..c15f252 100644 --- a/test/HTTP_POST_multipartTest.php +++ b/test/HTTP_POST_multipartTest.php @@ -5,16 +5,16 @@ require_once('src/HTTP_POST_multipart.php'); class HTTP_POST_multipartTest extends PHPUnit_Framework_TestCase { + protected static $_class; + public static function setUpBeforeClass() { # Set all methods to be public so we can test them - self::_class = new ReflectionClass('HTTP_POST_multipart'); - foreach (self::_class->getMethods() as $method) { + self::$_class = new ReflectionClass('HTTP_POST_multipart'); + foreach (self::$_class->getMethods() as $method) { $method->setAccessible(true); } } - protected static $_class; - /** * @dataProvider providerBuildDataPart */ @@ -22,7 +22,7 @@ class HTTP_POST_multipartTest extends PHPUnit_Framework_TestCase { if ($ex) $this->setExpectedException($ex); $this->assertEquals( $expected, - self::_class->getMethod('bulidDataPart', array($name, $data)) + self::$_class->getMethod('bulidDataPart', array($name, $data)) ); } |