getProperty() public method

Gets the property name associated with an accessor method.
public getProperty ( string $methodName ) : string | null
$methodName string
return string | null
Esempio n. 1
0
 public function testWithBadMethodName()
 {
     $methodName = 'delGerard';
     $reflection = new Reflection();
     $return = $reflection->getProperty($methodName);
     $this->assertNotEquals($return, 'Gerard');
     $this->assertEquals($return, null);
 }