Skip to content

Commit

Permalink
Revert "drop support of setting msg/code in expectedExceptation annot…
Browse files Browse the repository at this point in the history
…ation"

This reverts commit d173bf1.
  • Loading branch information
sebastianbergmann committed Oct 10, 2018
1 parent b522003 commit a941fc1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/_files/ExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ public function testFour()
{
}

/**
* @expectedException Class Message 1234
*/
public function testFive()
{
}

/**
* @expectedException Class
* @expectedExceptionMessage Message
Expand Down
5 changes: 5 additions & 0 deletions tests/unit/Util/TestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ public function testGetExpectedException()
Test::getExpectedException(\ExceptionTest::class, 'testFour')
);

$this->assertArraySubset(
['class' => 'Class', 'code' => 1234, 'message' => 'Message'],
Test::getExpectedException(\ExceptionTest::class, 'testFive')
);

$this->assertArraySubset(
['class' => 'Class', 'code' => 1234, 'message' => 'Message'],
Test::getExpectedException(\ExceptionTest::class, 'testSix')
Expand Down

0 comments on commit a941fc1

Please sign in to comment.