|
4 | 4 | namespace Zalas\Injector\PHPUnit\Tests\Symfony\Compiler;
|
5 | 5 |
|
6 | 6 | use PHPUnit\Framework\TestCase;
|
| 7 | +use Prophecy\PhpUnit\ProphecyTrait; |
7 | 8 | use Prophecy\Prophecy\ObjectProphecy;
|
8 | 9 | use Symfony\Component\Config\Resource\ReflectionClassResource;
|
9 | 10 | use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
|
18 | 19 | use Zalas\Injector\PHPUnit\Tests\Symfony\Compiler\Fixtures\TestCase1;
|
19 | 20 | use Zalas\Injector\PHPUnit\Tests\Symfony\Compiler\Fixtures\TestCase2;
|
20 | 21 | use Zalas\Injector\Service\Property;
|
21 |
| -use Zalas\PHPUnit\Doubles\TestCase\TestDoubles; |
| 22 | +use Zalas\PHPUnit\Doubles\TestCase\ProphecyTestDoubles; |
22 | 23 |
|
23 | 24 | class ExposeServicesForTestsPassTest extends TestCase
|
24 | 25 | {
|
25 |
| - use TestDoubles; |
| 26 | + use ProphecyTrait; |
| 27 | + use ProphecyTestDoubles; |
26 | 28 |
|
27 | 29 | /**
|
28 | 30 | * @var ExposeServicesForTestsPass
|
@@ -97,7 +99,7 @@ public function test_it_registers_test_cases_as_container_resources()
|
97 | 99 |
|
98 | 100 | $this->assertCount(2, $resources);
|
99 | 101 | $this->assertContainsOnlyInstancesOf(ReflectionClassResource::class, $resources);
|
100 |
| - $this->assertRegExp('#'.\preg_quote(TestCase1::class, '#').'#', (string) $resources[0]); |
101 |
| - $this->assertRegExp('#'.\preg_quote(TestCase2::class, '#').'#', (string) $resources[1]); |
| 102 | + $this->assertMatchesRegularExpression('#'.\preg_quote(TestCase1::class, '#').'#', (string) $resources[0]); |
| 103 | + $this->assertMatchesRegularExpression('#'.\preg_quote(TestCase2::class, '#').'#', (string) $resources[1]); |
102 | 104 | }
|
103 | 105 | }
|
0 commit comments