From 05eb02255ef361a820f0f2d268d25b6af9b77d03 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Wed, 10 Oct 2018 07:14:19 +0200 Subject: [PATCH] Revert "partial message exception are no longer working, drop tests" This reverts commit 0052ec522b9bbf8b72d474f452719d5597ca8da3. --- .../Constraint/ExceptionMessageTest.php | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tests/unit/Framework/Constraint/ExceptionMessageTest.php b/tests/unit/Framework/Constraint/ExceptionMessageTest.php index 71291f389da..bd831429923 100644 --- a/tests/unit/Framework/Constraint/ExceptionMessageTest.php +++ b/tests/unit/Framework/Constraint/ExceptionMessageTest.php @@ -22,4 +22,31 @@ public function testLiteralMessage() { throw new \Exception('A literal exception message'); } + + /** + * @expectedException \Exception + * @expectedExceptionMessage A partial + */ + public function testPartialMessageBegin() + { + throw new \Exception('A partial exception message'); + } + + /** + * @expectedException \Exception + * @expectedExceptionMessage partial exception + */ + public function testPartialMessageMiddle() + { + throw new \Exception('A partial exception message'); + } + + /** + * @expectedException \Exception + * @expectedExceptionMessage exception message + */ + public function testPartialMessageEnd() + { + throw new \Exception('A partial exception message'); + } }