Example #1
0
 /**
  * @covers Brickoo\Component\Common\Assert::getInvalidArgumentException
  * @covers Brickoo\Component\Common\Assert::getErrorMessage
  * @covers Brickoo\Component\Common\Assert::getArgumentStringRepresentation
  */
 public function testThrowingAnObjectInvalidArgumentException()
 {
     $argument = new \stdClass();
     $errorMessage = "Testing throwing an exception.";
     $this->setExpectedException("InvalidArgumentException", sprintf("Unexpected argument [object #%s] stdClass", spl_object_hash($argument)));
     throw Assert::GetInvalidArgumentException($argument, $errorMessage);
 }