-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Add documentation for polyfill provided by the PHPUnitBridge #12101
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
Conversation
bc175ae
to
d1e0bae
Compare
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.
Just some minor comments from my side 👍
@nicolas-grekas I would appreciate a review from your side here. Thanks |
@@ -24,6 +24,14 @@ It comes with the following features: | |||
* Provides a modified version of PHPUnit that does not embed ``symfony/yaml`` nor | |||
``prophecy`` to prevent any conflicts with these dependencies. | |||
|
|||
* Provides polyfills for methods that are not available in older version of |
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.
In order to remove the negation wat about:
Provides polyfills to augment older versions of PHPUnit with methods provided by its newest versions.
…PUnitBridge (jderusse) This PR was merged into the 4.4 branch. Discussion ---------- Add documentation for polyfill provided by the PHPUnitBridge Provides documentaiton for the new features of PHPUnitBridge Fixes symfony#12092 Commits ------- d1e0bae Add documentation for polyfill provided by the PHPUnitBridge
I finally merged this ... after making all changes requested by Oskar and Nicolas. Thanks for the reviews! @jderusse thanks a lot for contributing these docs. I have two quick questions about things I wasn't entirely sure:
Thanks! |
Soory @javiereguiluz I was in holiday and missed the comment on that PR..
yes
it was to show that we are free to override method But it's confusing, we can remove this. class MyTest extends TestCase
{
use SetUpTearDownTrait;
private $state;
private function doSetup()
{
$this->state = 'demo';
}
}
class MyTest extends TestCase
{
use SetUpTearDownTrait;
private $state;
- private function doSetup()
+ private function doSetup(): void // you can set a return type
{
$this->state = 'demo';
}
}
class MyTest extends TestCase
{
use SetUpTearDownTrait;
private $state;
- private function doSetup()
+ protected function doSetup() // you can set a different visibility
{
$this->state = 'demo';
}
} |
Provides documentaiton for the new features of PHPUnitBridge
Fixes #12092