Permalink
Browse files

reflection set-accessible check

  • Loading branch information...
1 parent 692a8c6 commit a7c75172c3cb3ae392f4ccdb7280524873569548 pce committed Jul 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/Config_LiteTest.php
@@ -333,7 +333,7 @@ protected function getMethod($name)
{
$class = new ReflectionClass('Config_Lite');
$method = $class->getMethod($name);
- if (!method_exists($class, 'setAccessible')) {
+ if (!method_exists($method, 'setAccessible')) {
$this->markTestSkipped("This test requires PHP 5.3.0+");
}
$method->setAccessible(true);

0 comments on commit a7c7517

Please sign in to comment.