Exemplo n.º 1
0
 public function testSetConstructorOptionsSetsObjectOptionsIfAvailable()
 {
     $expected = array('hell' => 'yeah');
     $this->testObject = new Waf_Model_ConfiguratorTest_TestObjectWithOptions();
     Waf_Model_Configurator::setConstructorOptions($this->testObject, $expected);
     $this->assertEquals($expected, $this->testObject->options);
 }
Exemplo n.º 2
0
 public function __construct($options = null)
 {
     Waf_Model_Configurator::setConstructorOptions($this, $options);
 }