예제 #1
0
 public function testfromArray()
 {
     $aclRole = new ACLRole();
     $arr = array('id' => '1', 'name' => 'test', 'description' => 'some description text');
     $aclRole->fromArray($arr);
     //verify that it sets the object attributes correctly
     $this->assertSame($aclRole->id, '1');
     $this->assertSame($aclRole->name, 'test');
     $this->assertSame($aclRole->description, 'some description text');
 }