Skip to content

Commit cbbd57c

Browse files
committed
Updated deprecation message and fixed tests
1 parent e96e55e commit cbbd57c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+96
-40
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Fixtures;
4+
5+
class DummyMessage
6+
{
7+
private $message;
8+
9+
public function __construct(string $message)
10+
{
11+
$this->message = $message;
12+
}
13+
14+
public function getMessage(): string
15+
{
16+
return $this->message;
17+
}
18+
}

src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Fixtures/long_receiver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
$componentRoot = $_SERVER['COMPONENT_ROOT'];
44

55
if (!is_file($autoload = $componentRoot.'/vendor/autoload.php')) {
6-
$autoload = $componentRoot.'/../../../../vendor/autoload.php';
6+
$autoload = $componentRoot.'/../../../../../../vendor/autoload.php';
77
}
88

99
if (!file_exists($autoload)) {

src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/AmqpExtIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Transport;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Fixtures\DummyMessage;
1516
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpReceivedStamp;
1617
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpReceiver;
1718
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpSender;
@@ -20,7 +21,6 @@
2021
use Symfony\Component\Messenger\Envelope;
2122
use Symfony\Component\Messenger\Stamp\DelayStamp;
2223
use Symfony\Component\Messenger\Stamp\RedeliveryStamp;
23-
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
2424
use Symfony\Component\Messenger\Transport\Receiver\ReceiverInterface;
2525
use Symfony\Component\Messenger\Transport\Serialization\Serializer;
2626
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
@@ -171,7 +171,7 @@ public function testItReceivesSignals()
171171
$this->assertFalse($process->isRunning());
172172
$this->assertLessThan($amqpReadTimeout, microtime(true) - $signalTime);
173173
$this->assertSame($expectedOutput.<<<'TXT'
174-
Get envelope with message: Symfony\Component\Messenger\Tests\Fixtures\DummyMessage
174+
Get envelope with message: Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Fixtures\DummyMessage
175175
with stamps: [
176176
"Symfony\\Component\\Messenger\\Bridge\\AmqpExt\\Transport\\AmqpReceivedStamp",
177177
"Symfony\\Component\\Messenger\\Stamp\\ReceivedStamp",

src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/AmqpReceiverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
namespace Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Transport;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Fixtures\DummyMessage;
1516
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpReceivedStamp;
1617
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpReceiver;
1718
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\Connection;
1819
use Symfony\Component\Messenger\Envelope;
19-
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
2020
use Symfony\Component\Messenger\Transport\Serialization\Serializer;
2121
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
2222
use Symfony\Component\Serializer as SerializerComponent;

src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/AmqpSenderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
namespace Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Transport;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Fixtures\DummyMessage;
1516
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpSender;
1617
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpStamp;
1718
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\Connection;
1819
use Symfony\Component\Messenger\Envelope;
19-
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
2020
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
2121

2222
/**

src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/AmqpTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
namespace Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Transport;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Fixtures\DummyMessage;
1516
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpTransport;
1617
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\Connection;
1718
use Symfony\Component\Messenger\Envelope;
18-
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
1919
use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
2020
use Symfony\Component\Messenger\Transport\TransportInterface;
2121

src/Symfony/Component/Messenger/Bridge/AmqpExt/Tests/Transport/ConnectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
namespace Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Transport;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Component\Messenger\Bridge\AmqpExt\Tests\Fixtures\DummyMessage;
1516
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpFactory;
1617
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\AmqpStamp;
1718
use Symfony\Component\Messenger\Bridge\AmqpExt\Transport\Connection;
1819
use Symfony\Component\Messenger\Exception\InvalidArgumentException;
19-
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
2020

2121
/**
2222
* @requires extension amqp

src/Symfony/Component/Messenger/Bridge/AmqpExt/composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
"require": {
1919
"php": "^7.2.5",
2020
"ext-amqp": "*",
21-
"symfony/messenger": "^4.4|^5.0"
21+
"symfony/messenger": "^5.1"
2222
},
2323
"require-dev": {
2424
"symfony/property-access": "^4.4|^5.0",
2525
"symfony/serializer": "^4.4|^5.0",
26-
"symfony/event-dispatcher": "^4.4|^5.0"
26+
"symfony/event-dispatcher": "^4.4|^5.0",
27+
"symfony/process": "^4.4|^5.0"
2728
},
2829
"autoload": {
2930
"psr-4": { "Symfony\\Component\\Messenger\\Bridge\\AmqpExt\\": "" },
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
namespace Symfony\Component\Messenger\Bridge\Doctrine\Tests\Fixtures;
4+
5+
class DummyMessage
6+
{
7+
private $message;
8+
9+
public function __construct(string $message)
10+
{
11+
$this->message = $message;
12+
}
13+
14+
public function getMessage(): string
15+
{
16+
return $this->message;
17+
}
18+
}

src/Symfony/Component/Messenger/Bridge/Doctrine/Tests/Transport/ConnectionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
use Doctrine\DBAL\Schema\SchemaConfig;
2020
use Doctrine\DBAL\Schema\Synchronizer\SchemaSynchronizer;
2121
use PHPUnit\Framework\TestCase;
22+
use Symfony\Component\Messenger\Bridge\Doctrine\Tests\Fixtures\DummyMessage;
2223
use Symfony\Component\Messenger\Bridge\Doctrine\Transport\Connection;
23-
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
24+
2425

2526
class ConnectionTest extends TestCase
2627
{

0 commit comments

Comments
 (0)