Skip to content
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

Merged
merged 2 commits into from
Feb 6, 2017
Merged

Added PHP 7.1 testing #1599

merged 2 commits into from
Feb 6, 2017

Conversation

TeslaDethray
Copy link
Contributor

I'm using 7.1, so other people have to be, too.

@TeslaDethray TeslaDethray self-assigned this Feb 6, 2017
@greg-1-anderson
Copy link
Member

Guess I'd better add 7.1 to the test matrix for annotated-command project & c.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.116% when pulling 700f646 on add/71_tests into 7082595 on master.

@greg-1-anderson
Copy link
Member

@@ -28,6 +30,30 @@ public function setUp()
*/
public function testConsole()
{
if (version_compare(PHP_VERSION, '7.1.0') < 0) {
Copy link
Member

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.


public function testConsoleIncompatibleMessage()
{
$config = $this->getMockBuilder(TerminusConfig::class)
Copy link
Member

@greg-1-anderson greg-1-anderson Feb 6, 2017

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.

Copy link
Contributor Author

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.

->disableOriginalConstructor()
->getMock();

$config->method('get')
Copy link
Member

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.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 93.123% when pulling d4837ed on add/71_tests into 7082595 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 93.123% when pulling 3b991b2 on add/71_tests into 7082595 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 93.123% when pulling 2f013c4 on add/71_tests into 7082595 on master.

@TeslaDethray TeslaDethray merged commit 393cbda into master Feb 6, 2017
@TeslaDethray TeslaDethray deleted the add/71_tests branch February 6, 2017 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants