예제 #1
0
파일: TryTest.php 프로젝트: phalcon/zephir
 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();
 }
예제 #2
0
파일: TryTest.php 프로젝트: NumbDai/zephir
 public function testThrow2()
 {
     $this->setExpectedException('\\Exception', 'error');
     $t = new \Test\TryTest();
     $t->testThrow2();
 }