Codeception\Specify::getSpecifyExpectedException PHP Method

getSpecifyExpectedException() private method

private getSpecifyExpectedException ( $params )
    private function getSpecifyExpectedException($params)
    {
        if (isset($params['throws'])) {
            $throws = is_array($params['throws']) ? $params['throws'][0] : $params['throws'];
            if (is_object($throws)) {
                $throws = get_class($throws);
            }
            if ($throws === 'fail') {
                $throws = 'PHPUnit_Framework_AssertionFailedError';
            }
            $message = is_array($params['throws']) && isset($params['throws'][1]) ? $params['throws'][1] : false;
            return [$throws, $message];
        }
        return false;
    }