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(); }
public function testThrow2() { $this->setExpectedException('\\Exception', 'error'); $t = new \Test\TryTest(); $t->testThrow2(); }