/** * Overrides SimpleTestCase::assert to enable calling of skipIf() from within tests * * @param Expectation $expectation * @param mixed $compare * @param string $message * @return boolean|null * @access public */ function assert(&$expectation, $compare, $message = '%s') { if ($this->_should_skip) { return; } return parent::assert($expectation, $compare, $message); }