Ejemplo n.º 1
0
 public function testPassConfigObjectAndRequireInformationFromItOnSetConfig()
 {
     $components = array('YadifBaz' => array('class' => 'YadifBaz', 'methods' => array(array('method' => 'setA', 'arguments' => array('%foo.bar%')))));
     $config = new Zend_Config(array('foo' => array('bar' => 'baz')));
     $yadif = new Yadif_Container($components);
     $yadif->setConfig($config);
     $baz = $yadif->getComponent('YadifBaz');
     $this->assertEquals("baz", $baz->a);
 }