Lines Matching refs:exception
64 ->given($exception = new SUT('foo'))
65 ->when($result = $exception->getBacktrace())
83 $exception = new SUT('foo', 0, [], $previous)
85 ->when($result = $exception->getPreviousThrow())
94 ->given($exception = new SUT('foo', 0, ['arg', 42, null]))
95 ->when($result = $exception->getArguments())
104 ->given($exception = new SUT('foo', 0, 'arg'))
105 ->when($result = $exception->getArguments())
116 $exception = new SUT($message)
118 ->when($result = $exception->getRawMessage())
129 $exception = new SUT($message, 0, 'bar')
131 ->when($result = $exception->getFormattedMessage())
134 ->isEqualTo($exception->getMessage())
141 ->given($exception = new SUT('foo'))
142 ->when($result = $exception->getFrom())
151 ->given($exception = new SUT('foo'), $line = __LINE__)
152 ->when($result = $exception->raise())
166 $exception = new SUT('foo', 0, [], $previous), $line = __LINE__
168 ->when($result = $exception->raise(true))
186 $exception = new SUT('foo'), $line = __LINE__
188 ->when($result = SUT::uncaught($exception))
194 'Uncaught exception (' . get_class($exception) . '):' . "\n" .
203 ->exception(function () {
214 ->given($exception = new SUT('foo'))
215 ->when($result = $exception->__toString())
218 ->isEqualTo($exception->raise());