public function testConstructorArray() { $arr = array('name' => 'test', 'description' => 'description'); $obj = new SimpleClass($arr); $this->assertEquals($obj->getName(), "test"); $this->assertEquals($obj->getDescription(), "description"); }