GraphQL\Tests\Type\ScalarSerializationTest::testSerializesOutputStrings PHP Method

testSerializesOutputStrings() public method

    public function testSerializesOutputStrings()
    {
        $stringType = Type::string();
        $this->assertSame('string', $stringType->serialize('string'));
        $this->assertSame('1', $stringType->serialize(1));
        $this->assertSame('-1.1', $stringType->serialize(-1.1));
        $this->assertSame('true', $stringType->serialize(true));
        $this->assertSame('false', $stringType->serialize(false));
    }