Phan\Tests\Language\UnionTypeTest::testGenericArrayType PHP Method

testGenericArrayType() public method

    public function testGenericArrayType()
    {
        $type = GenericArrayType::fromElementType(GenericArrayType::fromElementType(IntType::instance()));
        $this->assertEquals($type->genericArrayElementType()->__toString(), "int[]");
    }