public function testtoObject() { $sUT = new Item(); $sUT->addProperty('test', new Property()); $sUT->addRequired('test'); $this->assertInstanceOf('stdClass', $sUT->toObject()); }