Exemple #1
0
 /**
  * @return bool
  */
 protected function is_failing()
 {
     $is_failing = !$this->check->is_passing() && !$this->has_thrown;
     return $is_failing;
 }
 /**
  * @covers tad_Arg_Check::or_condition
  * @covers tad_Arg_Check_FailingState::or_condition
  * @uses   tad_Arg_Check::is_or_failing
  */
 public function testCanApplyOrCondition()
 {
     $this->tad_arg_check->or_condition();
     $this->assertTrue($this->tad_arg_check->is_or_failing());
 }
 /**
  * @covers tad_Arg_Check::or_condition
  * @covers tad_Arg_Check_PassingState::or_condition
  * @uses   tad_Arg_Check::is_passing
  */
 public function testCanApplyOrCondition()
 {
     $this->tad_arg_check->or_condition();
     $this->assertFalse($this->tad_arg_check->is_passing());
 }