Exemple #1
0
 /**
  * @covers Brickoo\Component\Common\Assert::handleArgumentValidation
  * @covers Brickoo\Component\Common\Assert::getErrorMessage
  * @covers Brickoo\Component\Common\Assert::getArgumentStringRepresentation
  */
 public function testTriggeringErrorReturnFalse()
 {
     Assert::$throwExceptions = false;
     $argument = new \stdClass();
     $errorMessage = "Testing triggering an error.";
     $this->assertFalse(@Assert::handleArgumentValidation(false, $argument, $errorMessage));
 }