Extension\TryTest::testThrow1 PHP Method

testThrow1() public method

public testThrow1 ( )
    public function testThrow1()
    {
        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->testThrow1();
    }