Skip to content

Added a note for the test-pack #9452

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

Merged
merged 3 commits into from
May 24, 2018
Merged

Conversation

HeahDude
Copy link
Contributor

No description provided.

@HeahDude HeahDude added this to the 4.0 milestone Mar 20, 2018
@HeahDude
Copy link
Contributor Author

symfony/recipes#382 has been merged now.

testing.rst Outdated
@@ -20,7 +20,7 @@ wraps the original PHPUnit binary to provide additional features:

.. code-block:: terminal

$ composer require --dev symfony/phpunit-bridge
$ composer require --dev phpunit
Copy link
Member

Choose a reason for hiding this comment

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

Not sure about this change. The phpunit thing is an alias to our phpunit-bridge... but if we use just phpunit, then the reader doesn't know if they are installing PHPUnit or "our PHPUnit". Also, I'm not sure about removing the ./vendor/bin/simple-phpunit commands. What's the reasoning behind that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for you review, but I don't understand what you mean exactly by

if we use just phpunit, then the reader doesn't know if they are installing PHPUnit or "our PHPUnit"

are you talking of other contexts? Because here, we're saying that we need the bridge before showing the sample.

about removing the ./vendor/bin/simple-phpunit commands

This is how it works with Flex now. We just need to run ./bin/phpunit which is the bridge wrapper installed by the recipe, and is responsible for actually installing the phpunit's dependencies (ref https://github.com/symfony/recipes/blob/master/symfony/phpunit-bridge/3.3/bin/phpunit, and symfony/recipes#277).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We could add a note, maybe even a link, to say we use recipes here.

Copy link
Member

Choose a reason for hiding this comment

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

Though I think I agree with Javier about not using the phpunit alias here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok changed in 9a6b058.
Is this ok for you? Should I remove the new note?

testing.rst Outdated
@@ -260,6 +265,17 @@ document::
$client->getResponse()->getContent()
);

.. note::
Copy link
Member

Choose a reason for hiding this comment

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

Let's make this a tip instead, shouldn't we?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why not? @javiereguiluz wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ping :)

Copy link
Member

@javiereguiluz javiereguiluz left a comment

Choose a reason for hiding this comment

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

I finally could review this! Thanks for these changes. I did some minor rewords after the changes we made in #9742 regarding the use of Flex shortcuts.

@javiereguiluz
Copy link
Member

Thanks ... and I'm sorry it took so long to merge this!

@javiereguiluz javiereguiluz merged commit 8b48e9b into symfony:4.0 May 24, 2018
javiereguiluz added a commit that referenced this pull request May 24, 2018
This PR was merged into the 4.0 branch.

Discussion
----------

Added a note for the test-pack

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/roadmap for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `master` for features of unreleased versions).

-->

Commits
-------

8b48e9b Rewords and simplifications
9a6b058 fixup phpunit require
3eac413 Added a note for the test-pack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants