コード例 #1
0
 public function testFunctionDocBlockReturn()
 {
     require_once __DIR__ . '/TestAsset/functions.php';
     $function = new FunctionReflection('ZendTest\\Code\\Reflection\\TestAsset\\function6');
     $this->assertInstanceOf('Zend\\Code\\Reflection\\DocBlockReflection', $function->getDocBlock());
 }
コード例 #2
0
 public function testGetContentsReturnsEmptyContentsOnInternalCode()
 {
     $reflectionFunction = new FunctionReflection('max');
     $this->assertSame('', $reflectionFunction->getContents());
 }