CacheTool\CodeTest::testException PHP Method

testException() public method

public testException ( )
    public function testException()
    {
        $result = $this->getCodeResult('throw new \\Exception("exception", 132); return true;');
        $this->assertNull($result['result']);
        $this->assertCount(1, $result['errors']);
        $this->assertSame(132, $result['errors'][0]['no']);
        $this->assertSame('exception', $result['errors'][0]['str']);
    }