File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ public function testGetSetAliases()
188
188
public function testSetAliasesNull ()
189
189
{
190
190
$ command = new \TestCommand ();
191
- $ this ->{ method_exists ( $ this , $ _ = ' expectException ' ) ? $ _ : ' setExpectedException ' } ('InvalidArgumentException ' );
191
+ $ this ->expectException ('InvalidArgumentException ' );
192
192
$ command ->setAliases (null );
193
193
}
194
194
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function testForeground()
41
41
$ style ->setForeground ('default ' );
42
42
$ this ->assertEquals ("\033[39mfoo \033[39m " , $ style ->apply ('foo ' ));
43
43
44
- $ this ->{ method_exists ( $ this , $ _ = ' expectException ' ) ? $ _ : ' setExpectedException ' } ('InvalidArgumentException ' );
44
+ $ this ->expectException ('InvalidArgumentException ' );
45
45
$ style ->setForeground ('undefined-color ' );
46
46
}
47
47
@@ -58,7 +58,7 @@ public function testBackground()
58
58
$ style ->setBackground ('default ' );
59
59
$ this ->assertEquals ("\033[49mfoo \033[49m " , $ style ->apply ('foo ' ));
60
60
61
- $ this ->{ method_exists ( $ this , $ _ = ' expectException ' ) ? $ _ : ' setExpectedException ' } ('InvalidArgumentException ' );
61
+ $ this ->expectException ('InvalidArgumentException ' );
62
62
$ style ->setBackground ('undefined-color ' );
63
63
}
64
64
You can’t perform that action at this time.
0 commit comments