示例#1
0
 /**
  * Gets the static property values.
  *
  * @param string $name    The property name.
  * @param mixed  $default Optional default value.
  *
  * @return mixed
  */
 public function getStaticPropertyValue($name, $default = null)
 {
     $properties = $this->getStaticProperties();
     if (array_key_exists($name, $properties)) {
         return $properties[$name];
     }
     return parent::getStaticPropertyValue($name, $default);
 }
 /**
  * @return void
  * @covers \pdepend\reflection\api\StaticReflectionInterface
  * @group reflection
  * @group reflection::api
  * @group unittest
  * @expectedException \ReflectionException
  */
 public function testGetStaticPropertyValueThrowsException()
 {
     $interface = new StaticReflectionInterface(__CLASS__, '');
     $interface->getStaticPropertyValue('foo');
 }