summaryrefslogtreecommitdiff
path: root/test/HTTP_POST_multipartTest.php
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-05-09 15:37:20 +0000
committeruckelman <uckelman@nomic.net>2010-05-09 15:37:20 +0000
commit082cbe6a95c07c82a96ae70668c51b111e21edd5 (patch)
tree26f50d39bee8d5baed12f3bf27fa38956d3b3eae /test/HTTP_POST_multipartTest.php
parent133127cedadf576e99a3e0712029cbcd1568f4d2 (diff)
Doing reflection differently.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6813 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'test/HTTP_POST_multipartTest.php')
-rw-r--r--test/HTTP_POST_multipartTest.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/HTTP_POST_multipartTest.php b/test/HTTP_POST_multipartTest.php
index b34e68e..036f1cd 100644
--- a/test/HTTP_POST_multipartTest.php
+++ b/test/HTTP_POST_multipartTest.php
@@ -7,12 +7,14 @@ class HTTP_POST_multipartTest extends PHPUnit_Framework_TestCase {
public static function setUpBeforeClass() {
# Set all methods to be public so we can test them
- $class = new ReflectionClass('HTTP_POST_multipart');
- foreach ($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
*/
@@ -20,7 +22,7 @@ class HTTP_POST_multipartTest extends PHPUnit_Framework_TestCase {
if ($ex) $this->setExpectedException($ex);
$this->assertEquals(
$expected,
- HTTP_POST_multipart::buildDataPart($name, $data)
+ self::_class->getMethod('bulidDataPart', array($name, $data))
);
}