Extension\TryTest::testThrow2 PHP Метод

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

public testThrow2 ( )
    public function testThrow2()
    {
        if (!method_exists('PHPUnit_Runner_Version', 'id') || version_compare(\PHPUnit_Runner_Version::id(), '5.2.0', '<')) {
            $this->setExpectedException('\\Exception', 'error');
        } else {
            $this->expectException('\\Exception', 'error');
        }
        $t = new \Test\TryTest();
        $t->testThrow2();
    }