GrumPHPTest\Parser\Php\Visitor\NeverUseElseVisitorTest::it_allows_code_with_no_else_statements PHP Метод

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

    function it_allows_code_with_no_else_statements()
    {
        $code = <<<EOC
<?php
if (true) {
    return;
}
if (false) {
    return;
}
EOC;
        $errors = $this->visit($code);
        $this->assertCount(0, $errors);
    }