Inheritance: extends ClassDefinition
示例#1
0
 public function testHasProperty()
 {
     $reflection = new ReflectionClass('PHPSA\\Context');
     $definition = new RuntimeClassDefinition($reflection);
     foreach ($reflection->getProperties() as $property) {
         static::assertTrue($definition->hasProperty($property->getName()));
     }
     static::assertFalse($definition->hasProperty('XXXXX'));
 }