コード例 #1
0
ファイル: FunctionTest.php プロジェクト: jsnshrmn/Suma
 public function testGetInvokeArguments()
 {
     $function = new ReflectionFunction('Zend_Server_Reflection_FunctionTest_function');
     $r = new Zend_Server_Reflection_Function($function);
     $args = $r->getInvokeArguments();
     $this->assertTrue(is_array($args));
     $this->assertEquals(0, count($args));
     $argv = array('string1', 'string2');
     $r = new Zend_Server_Reflection_Function($function, null, $argv);
     $args = $r->getInvokeArguments();
     $this->assertTrue(is_array($args));
     $this->assertEquals(2, count($args));
     $this->assertTrue($argv === $args);
 }