Phan\Tests\AnalyzerTest::contextForCode PHP Method

contextForCode() private method

Get a Context after parsing the given bit of code.
private contextForCode ( string $code_stub ) : Context
$code_stub string
return Phan\Language\Context
    private function contextForCode(string $code_stub) : Context
    {
        return Analysis::parseNodeInContext($this->code_base, new Context(), \ast\parse_code('<?php ' . $code_stub, Config::get()->ast_version));
    }