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 15
15
"symfony/form" : " 4.0.*"
16
16
},
17
17
"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 "
20
20
},
21
21
"suggest" : {
22
22
"darkwebdesign/symfony-addon-pack" : " All Symfony add-ons bundled together" ,
Original file line number Diff line number Diff line change 21
21
namespace DarkWebDesign \SymfonyAddonTransformers \Tests ;
22
22
23
23
use DarkWebDesign \SymfonyAddonTransformers \BooleanToValueTransformer ;
24
+ use PHPUnit \Framework \TestCase ;
24
25
25
- class BooleanToValueTransformerTest extends \PHPUnit_Framework_TestCase
26
+ class BooleanToValueTransformerTest extends TestCase
26
27
{
27
28
/**
28
29
* @param string $trueValue
Original file line number Diff line number Diff line change 25
25
use DarkWebDesign \SymfonyAddonTransformers \Tests \Models \City ;
26
26
use DarkWebDesign \SymfonyAddonTransformers \Tests \Models \Employee ;
27
27
use DarkWebDesign \SymfonyAddonTransformers \Tests \Models \PointOfInterest ;
28
+ use PHPUnit \Framework \TestCase ;
28
29
29
- class EntityToIdentifierTransformerTest extends \PHPUnit_Framework_TestCase
30
+ class EntityToIdentifierTransformerTest extends TestCase
30
31
{
31
32
/** @var \DarkWebDesign\SymfonyAddonTransformers\Tests\Models\City */
32
33
private $ entity ;
@@ -54,9 +55,9 @@ protected function setUp()
54
55
$ this ->className = get_class ($ this ->entity );
55
56
$ this ->identifier = $ this ->entity ->getId ();
56
57
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 ' );
60
61
61
62
$ this ->entityManager ->method ('getRepository ' )->willReturn ($ this ->repository );
62
63
$ this ->entityManager ->method ('getClassMetadata ' )->willReturn ($ this ->metadata );
You can’t perform that action at this time.
0 commit comments