コード例 #1
0
ファイル: OoParamsTest.php プロジェクト: phalcon/zephir
 public function testSetStrictAgeException2()
 {
     $t = new \Test\Oo\OoParams();
     if (!method_exists('PHPUnit_Runner_Version', 'id') || version_compare(\PHPUnit_Runner_Version::id(), '5.2.0', '<')) {
         $this->setExpectedException('\\InvalidArgumentException');
     } else {
         $this->expectException('\\InvalidArgumentException');
     }
     $t->setStrictAge('17');
 }
コード例 #2
0
ファイル: OoParamsTest.php プロジェクト: chet0xhenry/zephir
 public function testSetStrictAgeException2()
 {
     $t = new \Test\Oo\OoParams();
     $this->setExpectedException('\\InvalidArgumentException');
     $t->setStrictAge("17");
 }