Phan\Tests\Language\UnionTypeTest::assertUnionTypeStringEqual PHP Метод

assertUnionTypeStringEqual() приватный Метод

Assert that a piece of code produces a type with the given name
private assertUnionTypeStringEqual ( string $code_stub, string $type_name )
$code_stub string A code stub for which '
$type_name string The expected type of the statement
    private function assertUnionTypeStringEqual(string $code_stub, string $type_name)
    {
        $this->assertEquals($type_name, $this->typeStringFromCode('<?php ' . $code_stub . ';'));
    }