Skip to content

Commit

Permalink
tests: pass with older symfony
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Oct 30, 2015
1 parent c623498 commit 50e9f6c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/KdybyTests/Console/InputErrors.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}

}
Expand Down

0 comments on commit 50e9f6c

Please sign in to comment.