protected function fail($reason) { if (is_string($reason) === false) { throw new exceptions\logic\invalidArgument('Fail message must be a string'); } throw new asserter\exception($this, $reason); }
protected function fail($reason) { try { parent::fail($reason); } catch (asserter\exception $exception) { throw new test\exceptions\skip($reason); } }