File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1515 "symfony/form" : " 4.0.*"
1616 },
1717 "require-dev" : {
18- "codeclimate/php-test-reporter" : " ^0.3.2 " ,
19- "phpunit/phpunit" : " ^4.8 "
18+ "codeclimate/php-test-reporter" : " ^0.4.4 " ,
19+ "phpunit/phpunit" : " ^7.5 "
2020 },
2121 "suggest" : {
2222 "darkwebdesign/symfony-addon-pack" : " All Symfony add-ons bundled together" ,
Original file line number Diff line number Diff line change 2121namespace DarkWebDesign \SymfonyAddonTransformers \Tests ;
2222
2323use DarkWebDesign \SymfonyAddonTransformers \BooleanToValueTransformer ;
24+ use PHPUnit \Framework \TestCase ;
2425
25- class BooleanToValueTransformerTest extends \PHPUnit_Framework_TestCase
26+ class BooleanToValueTransformerTest extends TestCase
2627{
2728 /**
2829 * @param string $trueValue
Original file line number Diff line number Diff line change 2525use DarkWebDesign \SymfonyAddonTransformers \Tests \Models \City ;
2626use DarkWebDesign \SymfonyAddonTransformers \Tests \Models \Employee ;
2727use DarkWebDesign \SymfonyAddonTransformers \Tests \Models \PointOfInterest ;
28+ use PHPUnit \Framework \TestCase ;
2829
29- class EntityToIdentifierTransformerTest extends \PHPUnit_Framework_TestCase
30+ class EntityToIdentifierTransformerTest extends TestCase
3031{
3132 /** @var \DarkWebDesign\SymfonyAddonTransformers\Tests\Models\City */
3233 private $ entity ;
@@ -54,9 +55,9 @@ protected function setUp()
5455 $ this ->className = get_class ($ this ->entity );
5556 $ this ->identifier = $ this ->entity ->getId ();
5657
57- $ this ->entityManager = $ this ->getMock ('Doctrine\Common\Persistence\ObjectManager ' );
58- $ this ->repository = $ this ->getMock ('Doctrine\Common\Persistence\ObjectRepository ' );
59- $ this ->metadata = $ this ->getMock ('Doctrine\Common\Persistence\Mapping\ClassMetadata ' );
58+ $ this ->entityManager = $ this ->createMock ('Doctrine\Common\Persistence\ObjectManager ' );
59+ $ this ->repository = $ this ->createMock ('Doctrine\Common\Persistence\ObjectRepository ' );
60+ $ this ->metadata = $ this ->createMock ('Doctrine\Common\Persistence\Mapping\ClassMetadata ' );
6061
6162 $ this ->entityManager ->method ('getRepository ' )->willReturn ($ this ->repository );
6263 $ this ->entityManager ->method ('getClassMetadata ' )->willReturn ($ this ->metadata );
You can’t perform that action at this time.
0 commit comments