Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 21, 2018
1 parent 69579e9 commit fcca9c2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 26 deletions.
16 changes: 0 additions & 16 deletions spec/Listener/MvcSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,22 +279,6 @@

});

it('returns result property value on error not has "Uncaught" prefix and result has value', function () {

allow('error_get_last')->toBeCalled()->andReturn([
'message' => 'Fatal',
]);

$listener = & $this->listener;
$result = & Closure::bind(function & ($listener) {
return $listener->result;
}, null, $listener)($listener);
$result = 'Fatal error';

expect($this->listener->phpFatalErrorHandler('Fatal'))->toBe('Fatal error');

});

});

describe('->execOnShutdown()', function () {
Expand Down
10 changes: 0 additions & 10 deletions spec/Middleware/ExpressiveSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -546,16 +546,6 @@

});

it('returns message value on error not has "Uncaught" prefix and result is empty', function () {

allow('error_get_last')->toBeCalled()->andReturn([
'message' => 'Fatal',
]);

expect($this->middleware->phpFatalErrorHandler('Fatal'))->toBe('Fatal');

});

it('returns result property value on error not has "Uncaught" prefix and result has value', function () {

allow('error_get_last')->toBeCalled()->andReturn([
Expand Down

0 comments on commit fcca9c2

Please sign in to comment.