Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Eloquent
Phony
Stub
Stub
throws
Eloquent\Phony\Stub\Stub::throws PHP Метод
Документация по интерфейсу Stub
Показать файл
Открыть проект
throws()
публичный
Метод
Add an answer that throws an exception.
public
throws
(
Exceptio\Exception | Erro\Error |
string
|
null
$exception
= null )
$exception
Exceptio\Exception | Erro\Error |
string
|
null
The exception, or message, or null to throw a generic exception.
public function throws($exception = null);
Stub
calls
callsArgument
callsArgumentWith
callsWith
closeRule
defaultAnswerCallback
does
doesWith
forwards
generates
returns
returnsArgument
returnsSelf
self
setDefaultAnswerCallback
setSelf
setsArgument
throws
with