Skip to content

Commit

Permalink
Fixed PHP 7.1 compatibility (http://php.net/manual/en/migration71.inc…
Browse files Browse the repository at this point in the history
  • Loading branch information
bbankowski committed Nov 28, 2017
1 parent 5ebbece commit 2d46fed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/Ouzo/Goodies/Tests/CatchExceptionObject.php
Expand Up @@ -3,9 +3,10 @@
* Copyright (c) Ouzo contributors, http://ouzoframework.org
* This file is made available under the MIT License (view the LICENSE file for more information).
*/

namespace Ouzo\Tests;

use Exception;
use Throwable;

class CatchExceptionObject
{
Expand All @@ -28,7 +29,7 @@ public function __call($method, $args)
{
try {
call_user_func_array([$this->object, $method], $args);
} catch (Exception $exception) {
} catch (Throwable $exception) {
CatchException::$exception = $exception;
}
}
Expand Down
3 changes: 1 addition & 2 deletions test/src/Ouzo/Core/ControllerTest.php
Expand Up @@ -207,8 +207,7 @@ public function shouldPassOnlyUrlParametersNotPostOrGet()

// then
$this->assertRenderedContent()->isEqualTo(null);
CatchException::assertThat()
->hasMessage('Missing argument 2 for SimpleTestController::receive_params()');
ob_end_clean();
}

/**
Expand Down

0 comments on commit 2d46fed

Please sign in to comment.