Permalink
Browse files

Fixed PHP 7.1 compatibility (http://php.net/manual/en/migration71.inc…

  • Loading branch information...
bbankowski committed Nov 28, 2017
1 parent 5ebbece commit 2d46fedd3ad71c9d520cc3fb936f4d806df0d38e
Showing with 4 additions and 4 deletions.
  1. +3 −2 src/Ouzo/Goodies/Tests/CatchExceptionObject.php
  2. +1 −2 test/src/Ouzo/Core/ControllerTest.php
@@ -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
{
@@ -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;
}
}
@@ -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();
}
/**

0 comments on commit 2d46fed

Please sign in to comment.