Skip to content

Commit b2b1d59

Browse files
committed
Fix renamed assertions and prophecy warnings
1 parent 582b3a9 commit b2b1d59

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

pkg/enqueue/Tests/Symfony/Client/DependencyInjection/BuildProcessorRegistryPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private function assertLocatorServices(ContainerBuilder $container, $locatorId,
136136
$locatorId = (string) $locatorId;
137137

138138
$this->assertTrue($container->hasDefinition($locatorId));
139-
$this->assertRegExp('/\.?service_locator\..*?\.enqueue\./', $locatorId);
139+
$this->assertMatchesRegularExpression('/\.?service_locator\..*?\.enqueue\./', $locatorId);
140140

141141
$match = [];
142142
if (false == preg_match('/(\.?service_locator\..*?)\.enqueue\./', $locatorId, $match)) {

pkg/enqueue/Tests/Symfony/DependencyInjection/BuildProcessorRegistryPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ private function assertLocatorServices(ContainerBuilder $container, $locatorId,
199199
$locatorId = (string) $locatorId;
200200

201201
$this->assertTrue($container->hasDefinition($locatorId));
202-
$this->assertRegExp('/\.?service_locator\..*?\.enqueue\./', $locatorId);
202+
$this->assertMatchesRegularExpression('/\.?service_locator\..*?\.enqueue\./', $locatorId);
203203

204204
$match = [];
205205
if (false == preg_match('/(\.?service_locator\..*?)\.enqueue\./', $locatorId, $match)) {

pkg/fs/Tests/FsContextTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function testShouldCreateFileOnFilesystemIfNotExistOnDeclareDestination()
192192

193193
$queue = $context->createQueue($tmpFile->getFilename());
194194

195-
$this->assertFileNotExists((string) $tmpFile);
195+
$this->assertFileDoesNotExist((string) $tmpFile);
196196

197197
$context->declareDestination($queue);
198198

pkg/snsqs/Tests/SnsQsProducerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
use Interop\Queue\Producer;
1919
use PHPUnit\Framework\TestCase;
2020
use Prophecy\Argument;
21+
use Prophecy\PhpUnit\ProphecyTrait;
2122

2223
class SnsQsProducerTest extends TestCase
2324
{
2425
use ClassExtensionTrait;
26+
use ProphecyTrait;
2527

2628
public function testShouldImplementProducerInterface()
2729
{

0 commit comments

Comments
 (0)