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

Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase #12269

Closed
wants to merge 1 commit into from
Closed

Conversation

carusogabriel
Copy link

@carusogabriel carusogabriel commented Nov 11, 2017

I use the PHPUnit\Framework\TestCase notation instead of PHPUnit_Framework_TestCase while extending our TestCases. This will help us migrate to PHPUnit 6, that no longer support snake case class names.

I just to bumped PHPUnit version to 4.8.35, that support this namespace.

class HttpResponseText extends \PHPUnit_Framework_Constraint
use PHPUnit\Framework\TestCase;

class HttpResponseText extends Constraint
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests fail here, as Constraint class can't be found. Guess you need to adjust the use statement

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, I didn't get this one. I'll amend the commit and change it.

@@ -86,20 +87,21 @@ public function test_deprecations()
$this->assertDeprecatedMethodIsRemovedInPiwik4('Piwik\Columns\Dimension', 'getType');
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you revert the changes in coding style below?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, my IDE did. I revert it. Waiting for Travis CI to check the changes I made.

@sgiehl sgiehl added this to the 3.3.0 milestone Nov 12, 2017
@sgiehl
Copy link
Member

sgiehl commented Nov 13, 2017

Should be ready to merge. But we also need to update all the tests in our plugin repos...

@carusogabriel
Copy link
Author

carusogabriel commented Nov 13, 2017

@sgiehl I'm going to work on them!

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.

None yet

3 participants