Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
suppressed-exceptions
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
grifart libs
suppressed-exceptions
Commits
d2d8c347
Commit
d2d8c347
authored
Apr 16, 2019
by
Jan Kuchař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed unnecessary \Symfony\...\RuntimeException
parent
bf9f7218
Pipeline
#16079
passed with stages
in 26 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
tests/simple.phpt
tests/simple.phpt
+1
-2
tests/simple_exception-message.txt
tests/simple_exception-message.txt
+7
-7
No files found.
tests/simple.phpt
View file @
d2d8c347
...
...
@@ -4,7 +4,6 @@ namespace Grifart\SuppressedExceptions\__tests;
use
Grifart\SuppressedExceptions\SuppressedExceptions
;
use
Grifart\SuppressedExceptions\WithSuppressedExceptions
;
use
Symfony\Component\Console\Exception\RuntimeException
;
use
Tester\Assert
;
require
__DIR__
.
'/bootstrap.php'
;
...
...
@@ -15,7 +14,7 @@ class TestingSuppressedExceptionsException extends \RuntimeException implements
}
$previous
=
new
TestingSuppressedExceptionsException
(
'previous'
,
-
1
,
new
RuntimeException
());
$previous
=
new
TestingSuppressedExceptionsException
(
'previous'
,
-
1
,
new
\
RuntimeException
());
$exception
=
new
TestingSuppressedExceptionsException
(
'message'
,
42
,
$previous
);
$exception
->
addSuppressed
(
$suppressed1
=
new
\
RuntimeException
());
...
...
tests/simple_exception-message.txt
View file @
d2d8c347
message
Suppressed exceptions:
- simple.phpt:2
1
- RuntimeException
- simple.phpt:2
2
- This is message (LogicException)
- simple.phpt:2
3
- Error
- simple.phpt:2
4
- With previous (Exception)
previous: simple.phpt:1
8
- previous (Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException)
previous: simple.phpt:1
8 - Symfony\Component\Console\Exception\
RuntimeException
- simple.phpt:2
5
- Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException
- simple.phpt:2
0
- RuntimeException
- simple.phpt:2
1
- This is message (LogicException)
- simple.phpt:2
2
- Error
- simple.phpt:2
3
- With previous (Exception)
previous: simple.phpt:1
7
- previous (Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException)
previous: simple.phpt:1
7 -
RuntimeException
- simple.phpt:2
4
- Grifart\SuppressedExceptions\__tests\TestingSuppressedExceptionsException
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment