Beispiel #1
0
 /**
  * Sets a property.
  *
  * @param Stagehand_PHP_Class_Property $property
  */
 public function setProperty(Stagehand_PHP_Class_Property $property)
 {
     $this->_properties[$property->getName()] = $property;
 }
 /**
  * @test
  */
 public function createAStaticProperty()
 {
     $name = 'foo';
     $property = new Stagehand_PHP_Class_Property($name);
     $this->assertEquals($property->getName(), $name);
     $this->assertFalse($property->isStatic());
     $property->defineStatic();
     $this->assertTrue($property->isStatic());
 }