Skip to content

Commit a255a87

Browse files
Update assertions
1 parent 2b89116 commit a255a87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test-arguments.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,11 @@ public function testParseWithValidOptions($cliParams, $expectedValues)
256256
* @param array $args arguments as they appear in the cli
257257
* @param array $expectedValues expected values after parsing
258258
* @dataProvider settingsWithMissingOptions
259-
* @expectedException PHPUnit_Framework_Error_Warning
260-
* @expectedExceptionMessage no value given for --option1
261259
*/
262260
public function testParseWithMissingOptions($cliParams, $expectedValues)
263261
{
262+
$this->expectWarning();
263+
$this->expectWarningMessage('no value given for --option1');
264264
$this->_testParse($cliParams, $expectedValues);
265265
}
266266

0 commit comments

Comments
 (0)