예제 #1
0
 public function testAttibuteGettersAndSettersWork()
 {
     $profile = new Zend_Tool_Project_Profile(array('foo' => 'bar'));
     $profile->setAttributes(array('baz' => 'BAZ'));
     $profile->setAttribute('boof', 'foob');
     $this->assertEquals('foob', $profile->getAttribute('boof'));
     $this->assertContains('bar', $profile->getAttributes());
     $this->assertContains('BAZ', $profile->getAttributes());
 }