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