Example #1
0
 public function testOptionalParameterBooleanException()
 {
     $t = new Mcall();
     if (!method_exists('PHPUnit_Runner_Version', 'id') || version_compare(\PHPUnit_Runner_Version::id(), '5.2.0', '<')) {
         $this->setExpectedException('\\InvalidArgumentException');
     } else {
         $this->expectException('\\InvalidArgumentException');
     }
     $t->optionalParameterBoolean('test');
 }
Example #2
0
 public function testOptionalParameterBooleanException()
 {
     $t = new Mcall();
     $this->setExpectedException('\\InvalidArgumentException');
     $t->optionalParameterBoolean('test');
 }