I'm using symfony 3 and PhpUnit 5.6.4. I'm testing my form with http://symfony.com/doc/master/form/unit_testing.html
My code is here but when I run phpunit I get:
Testing Test Suite PHP Fatal error: Call to undefined method Tests\AnnBundle\Form\Type\AnnTypeTest::createMock() in /media/mpf/mmf/tests/AnnBundle/Form/Type/AnnTypeTest.php on line 26 PHP Stack trace: PHP 1. {main}() /media/mpf/mmf/vendor/symfony/phpunit-bridge/bin/.phpunit/phpunit-4.8/phpunit:0
Thanks.
[https://gist.github.com/anonymous/e0c4dacdcb71c9969a3d645986519543] – user3686739 Apr 13 '17 at 21:11