response = new Response(new UtopiaSwooleResponse(new SwooleResponse())); Mapper::init(Models::getModels()); } /** * @throws \Exception */ public function testCreateTypeMapping() { $model = Models::getModel(Response::MODEL_COLLECTION); $type = Mapper::model(\ucfirst($model->getType())); $this->assertEquals('Collection', $type->name); } }