You can use "~2.0" for Symfony version 2.X. If you want use phpunit tool, you must create a phpunit.xml.dist in your project root directory. Alternatively you can ...