Skip to content

Commit d86e9cd

Browse files
authored
Merge pull request #564 from samnela/remove-deprecated-testcase
Remove deprecated testcase implementation
2 parents 102cc03 + 460f1d7 commit d86e9cd

19 files changed

+38
-19
lines changed

Diff for: pkg/dbal/Tests/DbalConnectionFactoryTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
use Enqueue\Dbal\DbalContext;
77
use Enqueue\Test\ClassExtensionTrait;
88
use Interop\Queue\ConnectionFactory;
9+
use PHPUnit\Framework\TestCase;
910

10-
class DbalConnectionFactoryTest extends \PHPUnit_Framework_TestCase
11+
class DbalConnectionFactoryTest extends TestCase
1112
{
1213
use ClassExtensionTrait;
1314

Diff for: pkg/dbal/Tests/DbalConsumerTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@
1111
use Interop\Queue\Consumer;
1212
use Interop\Queue\Exception\InvalidMessageException;
1313
use Interop\Queue\Message;
14+
use PHPUnit\Framework\TestCase;
1415

15-
class DbalConsumerTest extends \PHPUnit_Framework_TestCase
16+
class DbalConsumerTest extends TestCase
1617
{
1718
use ClassExtensionTrait;
1819

Diff for: pkg/dbal/Tests/DbalContextTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
use Interop\Queue\Destination;
1414
use Interop\Queue\Exception\InvalidDestinationException;
1515
use Interop\Queue\Exception\TemporaryQueueNotSupportedException;
16+
use PHPUnit\Framework\TestCase;
1617

17-
class DbalContextTest extends \PHPUnit_Framework_TestCase
18+
class DbalContextTest extends TestCase
1819
{
1920
use ClassExtensionTrait;
2021

Diff for: pkg/dbal/Tests/DbalDestinationTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
use Interop\Queue\Destination;
88
use Interop\Queue\Queue;
99
use Interop\Queue\Topic;
10+
use PHPUnit\Framework\TestCase;
1011

11-
class DbalDestinationTest extends \PHPUnit_Framework_TestCase
12+
class DbalDestinationTest extends TestCase
1213
{
1314
use ClassExtensionTrait;
1415

Diff for: pkg/dbal/Tests/DbalMessageTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
use Enqueue\Dbal\DbalMessage;
66
use Enqueue\Test\ClassExtensionTrait;
7+
use PHPUnit\Framework\TestCase;
78

8-
class DbalMessageTest extends \PHPUnit_Framework_TestCase
9+
class DbalMessageTest extends TestCase
910
{
1011
use ClassExtensionTrait;
1112

Diff for: pkg/dbal/Tests/DbalProducerTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
use Interop\Queue\Destination;
1010
use Interop\Queue\Exception\InvalidDestinationException;
1111
use Interop\Queue\Producer;
12+
use PHPUnit\Framework\TestCase;
1213

13-
class DbalProducerTest extends \PHPUnit_Framework_TestCase
14+
class DbalProducerTest extends TestCase
1415
{
1516
use ClassExtensionTrait;
1617

Diff for: pkg/dbal/Tests/ManagerRegistryConnectionFactoryTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
use Enqueue\Dbal\ManagerRegistryConnectionFactory;
99
use Enqueue\Test\ClassExtensionTrait;
1010
use Interop\Queue\ConnectionFactory;
11+
use PHPUnit\Framework\TestCase;
1112

12-
class ManagerRegistryConnectionFactoryTest extends \PHPUnit_Framework_TestCase
13+
class ManagerRegistryConnectionFactoryTest extends TestCase
1314
{
1415
use ClassExtensionTrait;
1516

Diff for: pkg/enqueue/Tests/Client/Driver/DbalDriverTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
use Interop\Queue\Producer as InteropProducer;
1717
use Interop\Queue\Queue as InteropQueue;
1818
use Interop\Queue\Topic as InteropTopic;
19+
use PHPUnit\Framework\TestCase;
1920

20-
class DbalDriverTest extends \PHPUnit_Framework_TestCase
21+
class DbalDriverTest extends TestCase
2122
{
2223
use ClassExtensionTrait;
2324
use GenericDriverTestsTrait;

Diff for: pkg/enqueue/Tests/Client/Driver/MongodbDriverTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
use Interop\Queue\Producer as InteropProducer;
1717
use Interop\Queue\Queue as InteropQueue;
1818
use Interop\Queue\Topic as InteropTopic;
19+
use PHPUnit\Framework\TestCase;
1920

20-
class MongodbDriverTest extends \PHPUnit_Framework_TestCase
21+
class MongodbDriverTest extends TestCase
2122
{
2223
use ClassExtensionTrait;
2324
use GenericDriverTestsTrait;

Diff for: pkg/enqueue/Tests/Consumption/FallbackSubscriptionConsumerTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
use Interop\Queue\Message as InteropMessage;
88
use Interop\Queue\Queue as InteropQueue;
99
use Interop\Queue\SubscriptionConsumer;
10+
use PHPUnit\Framework\TestCase;
1011

11-
class FallbackSubscriptionConsumerTest extends \PHPUnit_Framework_TestCase
12+
class FallbackSubscriptionConsumerTest extends TestCase
1213
{
1314
public function testShouldImplementSubscriptionConsumerInterface()
1415
{

Diff for: pkg/mongodb/Tests/MongodbConnectionFactoryTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
use Enqueue\Mongodb\MongodbContext;
77
use Enqueue\Test\ClassExtensionTrait;
88
use Interop\Queue\ConnectionFactory;
9+
use PHPUnit\Framework\TestCase;
910

1011
/**
1112
* @group mongodb
1213
*/
13-
class MongodbConnectionFactoryTest extends \PHPUnit_Framework_TestCase
14+
class MongodbConnectionFactoryTest extends TestCase
1415
{
1516
use ClassExtensionTrait;
1617

Diff for: pkg/mongodb/Tests/MongodbConsumerTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
use Interop\Queue\Consumer;
1212
use Interop\Queue\Exception\InvalidMessageException;
1313
use Interop\Queue\Message;
14+
use PHPUnit\Framework\TestCase;
1415

1516
/**
1617
* @group mongodb
1718
*/
18-
class MongodbConsumerTest extends \PHPUnit_Framework_TestCase
19+
class MongodbConsumerTest extends TestCase
1920
{
2021
use ClassExtensionTrait;
2122

Diff for: pkg/mongodb/Tests/MongodbContextTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
use Interop\Queue\Exception\InvalidDestinationException;
1414
use Interop\Queue\Exception\TemporaryQueueNotSupportedException;
1515
use MongoDB\Client;
16+
use PHPUnit\Framework\TestCase;
1617

1718
/**
1819
* @group mongodb
1920
*/
20-
class MongodbContextTest extends \PHPUnit_Framework_TestCase
21+
class MongodbContextTest extends TestCase
2122
{
2223
use ClassExtensionTrait;
2324

Diff for: pkg/mongodb/Tests/MongodbDestinationTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
use Interop\Queue\Destination;
88
use Interop\Queue\Queue;
99
use Interop\Queue\Topic;
10+
use PHPUnit\Framework\TestCase;
1011

1112
/**
1213
* @group mongodb
1314
*/
14-
class MongodbDestinationTest extends \PHPUnit_Framework_TestCase
15+
class MongodbDestinationTest extends TestCase
1516
{
1617
use ClassExtensionTrait;
1718

Diff for: pkg/mongodb/Tests/MongodbMessageTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44

55
use Enqueue\Mongodb\MongodbMessage;
66
use Enqueue\Test\ClassExtensionTrait;
7+
use PHPUnit\Framework\TestCase;
78

89
/**
910
* @group mongodb
1011
*/
11-
class MongodbMessageTest extends \PHPUnit_Framework_TestCase
12+
class MongodbMessageTest extends TestCase
1213
{
1314
use ClassExtensionTrait;
1415

Diff for: pkg/mongodb/Tests/MongodbProducerTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
use Interop\Queue\Destination;
1010
use Interop\Queue\Exception\InvalidDestinationException;
1111
use Interop\Queue\Producer;
12+
use PHPUnit\Framework\TestCase;
1213

1314
/**
1415
* @group mongodb
1516
*/
16-
class MongodbProducerTest extends \PHPUnit_Framework_TestCase
17+
class MongodbProducerTest extends TestCase
1718
{
1819
use ClassExtensionTrait;
1920

Diff for: pkg/sqs/Tests/SqsConsumerTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
use Interop\Queue\Consumer;
1414
use Interop\Queue\Exception\InvalidMessageException;
1515
use Interop\Queue\Message;
16+
use PHPUnit\Framework\TestCase;
1617

17-
class SqsConsumerTest extends \PHPUnit_Framework_TestCase
18+
class SqsConsumerTest extends TestCase
1819
{
1920
use ClassExtensionTrait;
2021

Diff for: pkg/sqs/Tests/SqsDestinationTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
use Enqueue\Test\ClassExtensionTrait;
77
use Interop\Queue\Queue;
88
use Interop\Queue\Topic;
9+
use PHPUnit\Framework\TestCase;
910

10-
class SqsDestinationTest extends \PHPUnit_Framework_TestCase
11+
class SqsDestinationTest extends TestCase
1112
{
1213
use ClassExtensionTrait;
1314

Diff for: pkg/sqs/Tests/SqsProducerTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
use Interop\Queue\Exception\InvalidDestinationException;
1414
use Interop\Queue\Exception\InvalidMessageException;
1515
use Interop\Queue\Producer;
16+
use PHPUnit\Framework\TestCase;
1617

17-
class SqsProducerTest extends \PHPUnit_Framework_TestCase
18+
class SqsProducerTest extends TestCase
1819
{
1920
use ClassExtensionTrait;
2021

0 commit comments

Comments
 (0)