-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added PHP 7.1 testing #1599
Added PHP 7.1 testing #1599
Conversation
Guess I'd better add 7.1 to the test matrix for annotated-command project & c. |
cc0b834
to
bd20189
Compare
@@ -28,6 +30,30 @@ public function setUp() | |||
*/ | |||
public function testConsole() | |||
{ | |||
if (version_compare(PHP_VERSION, '7.1.0') < 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: use $this->markTestIncomplete("Console does not work on php7.1.");
when PHP >= 7.1.0.
bd20189
to
e53cbd3
Compare
|
||
public function testConsoleIncompatibleMessage() | ||
{ | ||
$config = $this->getMockBuilder(TerminusConfig::class) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: use $this->markTestIncomplete("Incompatible message only printed on php >= 7.1.");
when PHP < 7.1.0. Then remove all of the $config test_mode_pass
stuff and associated mocks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll use the incomplete for the first test, but this stays because I don't want my testing coverage to drop.
e53cbd3
to
0abe1d8
Compare
->disableOriginalConstructor() | ||
->getMock(); | ||
|
||
$config->method('get') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Skip the $config mock when using php 7.1.
0abe1d8
to
d4837ed
Compare
d4837ed
to
3b991b2
Compare
3b991b2
to
2f013c4
Compare
I'm using 7.1, so other people have to be, too.