Replacement for the original getProperty() method which makes sure
that a PropertyReflection object is returned instead of the
orginal ReflectionProperty instance.
public getProperty ( string $name ) : |
||
$name | string | Name of the property |
return | Property reflection object of the specified property in this class |
/** * @test */ public function getPropertyReturnsFlowsPropertyReflection() { $class = new ClassReflection(__CLASS__); $this->assertInstanceOf(PropertyReflection::class, $class->getProperty('someProperty'), 'The returned property is not of type \\Neos\\Flow\\Reflection\\PropertyReflection.'); $this->assertEquals('someProperty', $class->getProperty('someProperty')->getName(), 'The returned property seems not to be the right one.'); }