public function testShouldParseFieldIntoCastableType() { // Arrange $schema = m::mock(Schema::class); $schemaMapper = new SchemaMapper($schema); // Assert $this->assertSame(23, $schemaMapper->parseField('23', 'int')); $this->assertSame('1234', $schemaMapper->parseField(1234, 'string')); }