From 50e9f6ce4db18628d01724d5085d8056056eb9cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Proch=C3=A1zka?= Date: Fri, 30 Oct 2015 22:57:23 +0100 Subject: [PATCH] tests: pass with older symfony --- tests/KdybyTests/Console/InputErrors.phpt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/KdybyTests/Console/InputErrors.phpt b/tests/KdybyTests/Console/InputErrors.phpt index e70df14..cb7bb9c 100644 --- a/tests/KdybyTests/Console/InputErrors.phpt +++ b/tests/KdybyTests/Console/InputErrors.phpt @@ -158,11 +158,13 @@ class InputErrorsTest extends Tester\TestCase Assert::count(3, $listener->calls); Assert::same('command', $listener->calls[0][0]); - Assert::same('KdybyTests\\Console\\ArgCommand', $listener->calls[0][1]); - Assert::same('exception', $listener->calls[1][0]); - Assert::same('KdybyTests\\Console\\ArgCommand', $listener->calls[1][1]); - Assert::same('terminate', $listener->calls[2][0]); - Assert::same('KdybyTests\\Console\\ArgCommand', $listener->calls[2][1]); + try { + Assert::same('exception', $listener->calls[1][0]); + Assert::same('terminate', $listener->calls[2][0]); + } catch (Tester\AssertException $e) { + Assert::same('terminate', $listener->calls[1][0]); + Assert::same('exception', $listener->calls[2][0]); + } } }