/**
  *    Tests the type of a value.
  *    @param $value          Value to take type of.
  *    @param $type           Hoped for type.
  *    @param $message        Message to display.
  *    @public
  */
 function assertType($value, $type, $message = "%s")
 {
     parent::assertTrue(gettype($value) == strtolower($type), $message);
 }
 /**
  *    Triggers an assertion on the held test case.
  *    Should be overridden when using another test
  *    framework other than the SimpleTest one if the
  *    assertion method has a different name.
  *    @param boolean $assertion     True will pass.
  *    @param string $message        Message that will go with
  *                                  the test event.
  *    @param SimpleTestCase $test   Unit test case to send
  *                                  assertion to.
  *    @access protected
  */
 function _assertTrue($assertion, $message , &$test) {
     if ($test) {
         $test->assertTrue($assertion, $message);
     }
 }
 /**
  *    Sends pass if the test condition resolves true,
  *    a fail otherwise.
  *    @param $condition      Condition to test true.
  *    @param $message        Message to display.
  *    @public
  */
 function assert($condition, $message = false)
 {
     parent::assertTrue($condition, $message);
 }
 /**
  *    Sends an error which we interpret as a fail
  *    with a different message for compatibility.
  *    @param $message        Message to display.
  *    @public
  */
 function error($message)
 {
     parent::assertTrue(false, "Error triggered [{$message}]");
 }