mageekguy\atoum\asserter::fail PHP Метод

fail() защищенный Метод

protected fail ( $reason )
    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);
    }

Usage Example

Пример #1
0
 protected function fail($reason)
 {
     try {
         parent::fail($reason);
     } catch (asserter\exception $exception) {
         throw new test\exceptions\skip($reason);
     }
 }