create('value'); self::assertInstanceOf( StringType::class, $type, ); } public function testGetIntegerType(): void { $type = (new MapperType(MapperType::INTEGER))->create(1); self::assertInstanceOf( IntegerType::class, $type, ); } public function testGetIntType(): void { $type = (new MapperType(MapperType::INT))->create(1); self::assertInstanceOf( IntegerType::class, $type, ); } public function testTypeNotFountException(): void { self::expectException(TypeNotFountException::class); (new MapperType('type-exception'))->create('value'); } }