spec\PhpSpec\CodeAnalysis\TokenizedTypeHintRewriterSpec::it_does_not_remove_typehints_in_methods PHP Метод

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

    function it_does_not_remove_typehints_in_methods()
    {
        $this->rewrite('
        <?php

        class FooSpec
        {
            public function bar(\\Foo\\Bar $bar)
            {
                new class($argument) implements InterfaceName
                {
                    public function foo(Foo $foo) {}
                };
            }
        }

        ')->shouldReturn('
        <?php

        class FooSpec
        {
            public function bar( $bar)
            {
                new class($argument) implements InterfaceName
                {
                    public function foo(Foo $foo) {}
                };
            }
        }

        ');
    }