Exemplo n.º 1
0
 public function testAttibuteGettersAndSettersWork()
 {
     $profile = new 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());
 }