mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Remove setExpectedException wrapper
This commit is contained in:
parent
32dcb93f24
commit
6ed3aeb343
44 changed files with 98 additions and 101 deletions
|
@ -50,7 +50,8 @@ class StrictConfirmationQuestionTest extends TestCase
|
|||
{
|
||||
list($input, $dialog) = $this->createInput($answer."\n");
|
||||
|
||||
$this->setExpectedException('InvalidArgumentException', 'Please answer yes, y, no, or n.');
|
||||
self::expectException('InvalidArgumentException');
|
||||
self::expectExceptionMessage('Please answer yes, y, no, or n.');
|
||||
|
||||
$question = new StrictConfirmationQuestion('Do you like French fries?');
|
||||
$question->setMaxAttempts(1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue