Youshido\Tests\Library\Utilities\TypeUtilitiesTest::testIsInputType PHP Метод

testIsInputType() публичный Метод

public testIsInputType ( )
    public function testIsInputType()
    {
        $testType = new ObjectType(['name' => 'test', 'fields' => ['name' => new StringType()]]);
        $this->assertTrue(TypeService::isInputType(new StringType()));
        $this->assertTrue(TypeService::isInputType(TypeMap::TYPE_STRING));
        $this->assertFalse(TypeService::isInputType('invalid type'));
        $this->assertFalse(TypeService::isInputType($testType));
    }