Пример #1
0
 public function testfromArray()
 {
     $aclAction = new ACLAction();
     $arr = array('id' => '1234', 'name' => 'test');
     //execute the method and verify that it retunrs expected results
     $aclAction->fromArray($arr);
     $this->assertSame($aclAction->id, '1234');
     $this->assertSame($aclAction->name, 'test');
 }