symfony/phpunit-bridge
Opened this issue · 1 comments
kenjis commented
Symfony 2.7をインストールすると、symfony/phpunit-bridge
が含まれています。
$ symfony new classic-symfony 2.7
$ cd classic-symfony/
$ composer show -i | grep symfony
symfony/assetic-bundle v2.7.1 Integrates Assetic into Symfony2
symfony/monolog-bundle v2.8.2 Symfony MonologBundle
symfony/phpunit-bridge v2.7.7 Symfony PHPUnit Bridge
symfony/swiftmailer-bundle v2.3.8 Symfony SwiftmailerBundle
symfony/symfony v2.7.7 The Symfony PHP framework
しかし、ここのサンプルコードには含まれていないようです。
Line 28 in 53be5f8
kenjis commented
手許の環境では、テストを実行すると以下のRemaining deprecation notices
が表示されます。
$ php phpunit.phar -c app/
PHPUnit 5.1.3 by Sebastian Bergmann and contributors.
... 3 / 3 (100%)
Time: 3.65 seconds, Memory: 24.00Mb
OK (3 tests, 9 assertions)
Remaining deprecation notices (1)
The Symfony\Component\Security\Core\SecurityContext class is deprecated since version 2.6 and will be removed in 3.0. Use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage or Symfony\Component\Security\Core\Authorization\AuthorizationChecker instead: 1x
1x in BlogControllerTest::ブログ記事一覧が表示されること from AppBundle\Controller
しかし、もう一度実行すると表示されません。
$ php phpunit.phar -c app/
PHPUnit 5.1.3 by Sebastian Bergmann and contributors.
... 3 / 3 (100%)
Time: 1.16 seconds, Memory: 12.00Mb
OK (3 tests, 9 assertions)
この表示される・されないの仕様がよくわかりません。
ご存知でしたら、お教えください。