Using Symfony 4, I have recently come across the message "Adding phpunit/phpunit as a dependency is discouraged." which seems to have been added in this PR. The message says to "Run php bin/phpunit" which then seems to download PHPUnit to the bin/ directory. However, I don't see why it is placed there and not in the vendor/ directory. I can see I can change the path using an ENV variable, but I don't want to do that every time I run my tests. I have tried looking up the documentation around this recipe, but there isn't much to go on.
Am I mis-understanding something?
Or is the documentation incomplete/misleading?
Symfony: How to correctly switch from phpunit/phpunit to phpunit bridge
3.4k Views Asked by Votemike At
1
There are 1 best solutions below
Related Questions in SYMFONY
- Doctrine batch inserting uses 2GB of Ram
- Adding a callback when reading from an object in Twig
- Using Twig variable in AngularsJS
- Twig : Unescape hexadecimal text
- Symfony : is it better to use a trait or an intermediary class to complete Controller one?
- Symfony 2 form - date widget and validator
- Persisting other entities inside preUpdate of Doctrine Entity Listener
- Symfony2 - Custom annotation loading
- Display a findAll() result in a form
- What is the point of the name method in the symfony2 annotation?
- How to pass a function as a parameter in admin class
- doctrine/migrations incompatible with symfony 2.2.*
- Expected argument of type "string or Symfony\Component\Form\FormTypeInterface"
- Routing problems with AngularJS and Symfony
- symfony and google identity toolkit
Related Questions in PHPUNIT
- PHPunit call magic methods
- PHPUnit testing socket
- Yii phpunit error SeleniumTestCase.php fail to open stream
- cakephp test filter do not execute
- How to use phpunit with DBUnit on IBM DB2?
- Laravel 5.1 testing with PHPUnit and PHPSpec
- What's a good way to test a user factory that depends on an external API call
- phpunit debugging only going into phpunit.phar file
- Calling a method of a mock object
- Unable to find wrapper when testing Guzzle call with PHPUnit
- phpunit and http content-type
- PHP - How to change machine's DateTime only during selenium testing
- Jenkins setup for PHPUnit tests which use Selenium standalone webdriver
- Can't run firefox in headless mode
- WP_UnitTestCase - how to configure the include_path correctly with phpunit PHAR
Related Questions in SYMFONY4
- How can I retrieve my environment variables in a parameter file in Symfony4 structure?
- More than one application per project repository with Symfony 4
- Symfony $form->getData() return empty Object with values concatenated
- Sending "Server Params" through Postman :
- How to attach image to the email using symfony mailer?
- EasyAdmin 3 create custom field
- Datetime range won't select specific date
- Circular referencing in Symfony forms
- how to get the image depend an article in a relation one to many?
- Symfony retrieve Unique values from EAV model
- Symfony/Twig: How to force locale in Twig after setLocale is deprecated
- Symfony API transforming date
- FOS UserBundle UserManager::__construct() must be an instance of ObjectManager
- Symfony4 and Event Dispatcher issue, the script continues 25 seconds after the event
- Implement a custom error controller in Symfony 4.4
Related Questions in SYMFONY-FLEX
- Symfony Flex - Doctrine generate entity and entities runtime exception
- How can I retrieve my environment variables in a parameter file in Symfony4 structure?
- More than one application per project repository with Symfony 4
- How to provide namespace of Kernel to Codeception for a Symfony4 project
- How to configure Renovate to use composer plugins
- How to upgrade my Symfony applications while using flex?
- On my private Symfony Flex recipe, files are not copied from the recipe when installing the bundle
- symfony/profiler-pack (or symfony/orm-pack, or some other symfony/*-pack package) is being removed right after installation
- Upgrade to Symfony flex (3.4) - Problems when there are many bundles
- MappingException - The class 'generalBundle\Entity\xxx' was not found in the chain configured namespaces xxx - Upgrade to symfony flex
- Composer install suddenly fails because of symfony/flex
- How to generate a private recipe JSON from the contents of a recipe directory?
- Expected argument of type "App\Entity\void", "string" given
- Deploying to a production environment with Symfony Flex and --no-dev
- How to upgrade a Symfony 3 bundled application to a Symfony 4 bundle-less one?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
They now recommend using ./vendor/bin/simple-phpunit which will be installed with phpunit-bridge: https://symfony.com/doc/current/testing.html
The first call to simple-phpunit installs some requirements.