Upgrade tests to PHPUnit 6 and fix the broken ones

This commit is contained in:
Kamil Kokot 2018-03-13 16:03:36 +01:00
parent 280f82ee9e
commit d654cd0152
No known key found for this signature in database
GPG key ID: 7BD76F7054D93C89
41 changed files with 80 additions and 40 deletions

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\AdminApiBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\AdminApiBundle\Fixture\ApiAccessTokenFixture;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
final class ApiAccessTokenFixtureTest extends \PHPUnit_Framework_TestCase
final class ApiAccessTokenFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\AdminApiBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\AdminApiBundle\Fixture\ApiClientFixture;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
class OAuthCredentialsFixtureTest extends \PHPUnit_Framework_TestCase
final class ApiClientFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -16,6 +16,7 @@ namespace Sylius\Bundle\AdminBundle\Tests\Controller;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\ConnectException;
use Http\Message\MessageFactory;
use PHPUnit\Framework\TestCase;
use Prophecy\Argument;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;
@ -24,7 +25,7 @@ use Sylius\Bundle\AdminBundle\Controller\NotificationController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
final class NotificationControllerTest extends \PHPUnit_Framework_TestCase
final class NotificationControllerTest extends TestCase
{
/**
* @var ClientInterface

View file

@ -15,6 +15,7 @@ namespace Sylius\Bundle\ChannelBundle\Tests\DependencyInjection\Compiler;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\DefinitionHasMethodCallConstraint;
use PHPUnit\Framework\Constraint\LogicalNot;
use Sylius\Bundle\ChannelBundle\DependencyInjection\Compiler\CompositeChannelContextPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
@ -128,7 +129,7 @@ class CompositeChannelContextPassTest extends AbstractCompilerPassTestCase
self::assertThat(
$definition,
new \PHPUnit_Framework_Constraint_Not(new DefinitionHasMethodCallConstraint($method, $arguments))
new LogicalNot(new DefinitionHasMethodCallConstraint($method, $arguments))
);
}
}

View file

@ -15,6 +15,7 @@ namespace Sylius\Bundle\ChannelBundle\Tests\DependencyInjection\Compiler;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\DefinitionHasMethodCallConstraint;
use PHPUnit\Framework\Constraint\LogicalNot;
use Sylius\Bundle\ChannelBundle\DependencyInjection\Compiler\CompositeRequestResolverPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
@ -126,7 +127,7 @@ class CompositeRequestResolverPassTest extends AbstractCompilerPassTestCase
self::assertThat(
$definition,
new \PHPUnit_Framework_Constraint_Not(new DefinitionHasMethodCallConstraint($method, $arguments))
new LogicalNot(new DefinitionHasMethodCallConstraint($method, $arguments))
);
}
}

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\AddressFixture;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
final class AddressFixtureTest extends \PHPUnit_Framework_TestCase
final class AddressFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\AdminUserFixture;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
final class AdminUserFixtureTest extends \PHPUnit_Framework_TestCase
final class AdminUserFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\ChannelFixture;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
final class ChannelFixtureTest extends \PHPUnit_Framework_TestCase
final class ChannelFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\CurrencyFixture;
use Sylius\Component\Resource\Factory\FactoryInterface;
final class CurrencyFixtureTest extends \PHPUnit_Framework_TestCase
final class CurrencyFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\CustomerGroupFixture;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
final class CustomerGroupFixtureTest extends \PHPUnit_Framework_TestCase
final class CustomerGroupFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,12 +15,13 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\GeographicalFixture;
use Sylius\Component\Addressing\Factory\ZoneFactoryInterface;
use Sylius\Component\Resource\Factory\FactoryInterface;
use Symfony\Component\Intl\Intl;
final class GeographicalFixtureTest extends \PHPUnit_Framework_TestCase
final class GeographicalFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\LocaleFixture;
use Sylius\Component\Resource\Factory\FactoryInterface;
final class LocaleFixtureTest extends \PHPUnit_Framework_TestCase
final class LocaleFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\PaymentMethodFixture;
final class PaymentMethodFixtureTest extends \PHPUnit_Framework_TestCase
final class PaymentMethodFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\ProductAssociationFixture;
final class ProductAssociationFixtureTest extends \PHPUnit_Framework_TestCase
final class ProductAssociationFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\ProductAssociationTypeFixture;
final class ProductAssociationTypeFixtureTest extends \PHPUnit_Framework_TestCase
final class ProductAssociationTypeFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\ProductAttributeFixture;
final class ProductAttributeFixtureTest extends \PHPUnit_Framework_TestCase
final class ProductAttributeFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\ProductFixture;
final class ProductFixtureTest extends \PHPUnit_Framework_TestCase
final class ProductFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\ProductOptionFixture;
final class ProductOptionFixtureTest extends \PHPUnit_Framework_TestCase
final class ProductOptionFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\ProductReviewFixture;
final class ProductReviewFixtureTest extends \PHPUnit_Framework_TestCase
final class ProductReviewFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\PromotionFixture;
final class PromotionFixtureTest extends \PHPUnit_Framework_TestCase
final class PromotionFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\ShippingCategoryFixture;
final class ShippingCategoryFixtureTest extends \PHPUnit_Framework_TestCase
final class ShippingCategoryFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\ShippingMethodFixture;
final class ShippingMethodFixtureTest extends \PHPUnit_Framework_TestCase
final class ShippingMethodFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\ShopUserFixture;
final class ShopUserFixtureTest extends \PHPUnit_Framework_TestCase
final class ShopUserFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\TaxCategoryFixture;
final class TaxCategoryFixtureTest extends \PHPUnit_Framework_TestCase
final class TaxCategoryFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\TaxRateFixture;
final class TaxRateFixtureTest extends \PHPUnit_Framework_TestCase
final class TaxRateFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\CoreBundle\Tests\Fixture;
use Doctrine\Common\Persistence\ObjectManager;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\CoreBundle\Fixture\Factory\ExampleFactoryInterface;
use Sylius\Bundle\CoreBundle\Fixture\TaxonFixture;
final class TaxonFixtureTest extends \PHPUnit_Framework_TestCase
final class TaxonFixtureTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -14,10 +14,11 @@ declare(strict_types=1);
namespace Sylius\Bundle\FixturesBundle\Tests\DependencyInjection;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\FixturesBundle\DependencyInjection\Configuration;
use Symfony\Component\Config\Definition\ConfigurationInterface;
final class ConfigurationTest extends \PHPUnit_Framework_TestCase
final class ConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\FixturesBundle\Tests\Listener;
use Doctrine\Common\Persistence\ManagerRegistry;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\FixturesBundle\Listener\MongoDBPurgerListener;
use Symfony\Component\Config\Definition\ConfigurationInterface;
final class MongoDBPurgerListenerTest extends \PHPUnit_Framework_TestCase
final class MongoDBPurgerListenerTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\FixturesBundle\Tests\Listener;
use Doctrine\Common\Persistence\ManagerRegistry;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\FixturesBundle\Listener\ORMPurgerListener;
use Symfony\Component\Config\Definition\ConfigurationInterface;
final class ORMPurgerListenerTest extends \PHPUnit_Framework_TestCase
final class ORMPurgerListenerTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,10 +15,11 @@ namespace Sylius\Bundle\FixturesBundle\Tests\Listener;
use Doctrine\Common\Persistence\ManagerRegistry;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\FixturesBundle\Listener\PHPCRPurgerListener;
use Symfony\Component\Config\Definition\ConfigurationInterface;
final class PHPCRPurgerListenerTest extends \PHPUnit_Framework_TestCase
final class PHPCRPurgerListenerTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -14,10 +14,11 @@ declare(strict_types=1);
namespace Sylius\Bundle\GridBundle\Tests\DependencyInjection;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\GridBundle\DependencyInjection\Configuration;
use Sylius\Bundle\GridBundle\Doctrine\ORM\Driver;
final class ConfigurationTest extends \PHPUnit_Framework_TestCase
final class ConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -15,6 +15,7 @@ namespace Sylius\Bundle\OrderBundle\Tests\DependencyInjection\Compiler;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\DefinitionHasMethodCallConstraint;
use PHPUnit\Framework\Constraint\LogicalNot;
use Sylius\Bundle\OrderBundle\DependencyInjection\Compiler\RegisterProcessorsPass;
use Sylius\Component\Core\OrderProcessing\OrderAdjustmentsClearer;
use Sylius\Component\Order\Processor\CompositeOrderProcessor;
@ -96,7 +97,7 @@ final class RegisterOrderProcessorPassTest extends AbstractCompilerPassTestCase
self::assertThat(
$definition,
new \PHPUnit_Framework_Constraint_Not(new DefinitionHasMethodCallConstraint($method))
new LogicalNot(new DefinitionHasMethodCallConstraint($method))
);
}

View file

@ -13,13 +13,14 @@ declare(strict_types=1);
namespace Sylius\Bundle\ResourceBundle\Tests\Command;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\ResourceBundle\Command\DebugResourceCommand;
use Sylius\Component\Resource\Metadata\Metadata;
use Sylius\Component\Resource\Metadata\MetadataInterface;
use Sylius\Component\Resource\Metadata\RegistryInterface;
use Symfony\Component\Console\Tester\CommandTester;
final class DebugResourceCommandTest extends \PHPUnit_Framework_TestCase
final class DebugResourceCommandTest extends TestCase
{
/**
* @var RegistryInterface

View file

@ -15,6 +15,7 @@ namespace Sylius\Bundle\ResourceBundle\Tests\DependencyInjection\Compiler;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractCompilerPassTestCase;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\DefinitionHasMethodCallConstraint;
use PHPUnit\Framework\Constraint\LogicalNot;
use Sylius\Bundle\ResourceBundle\DependencyInjection\Compiler\RegisterResourceRepositoryPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
@ -119,7 +120,7 @@ final class RegisterResourceRepositoryPassTest extends AbstractCompilerPassTestC
self::assertThat(
$definition,
new \PHPUnit_Framework_Constraint_Not(new DefinitionHasMethodCallConstraint($method, $arguments))
new LogicalNot(new DefinitionHasMethodCallConstraint($method, $arguments))
);
}
}

View file

@ -14,9 +14,10 @@ declare(strict_types=1);
namespace Sylius\Bundle\ResourceBundle\Tests;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\ResourceBundle\DependencyInjection\Configuration;
class ConfigurationTest extends \PHPUnit_Framework_TestCase
class ConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -14,9 +14,10 @@ declare(strict_types=1);
namespace Sylius\Bundle\ShopBundle\Tests\DependencyInjection;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\ShopBundle\DependencyInjection\Configuration;
final class ConfigurationTest extends \PHPUnit_Framework_TestCase
final class ConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -14,10 +14,11 @@ declare(strict_types=1);
namespace Sylius\Bundle\ThemeBundle\Tests\Configuration;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\ThemeBundle\Configuration\ThemeConfiguration;
use Symfony\Component\Config\Definition\ConfigurationInterface;
final class ThemeConfigurationTest extends \PHPUnit_Framework_TestCase
final class ThemeConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -14,10 +14,11 @@ declare(strict_types=1);
namespace Sylius\Bundle\ThemeBundle\Tests\DependencyInjection;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\ThemeBundle\DependencyInjection\Configuration;
use Symfony\Component\Config\Definition\ConfigurationInterface;
final class ConfigurationTest extends \PHPUnit_Framework_TestCase
final class ConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -14,11 +14,12 @@ declare(strict_types=1);
namespace Sylius\Bundle\ThemeBundle\Tests\DependencyInjection\FilesystemSource;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\ThemeBundle\Configuration\Filesystem\FilesystemConfigurationSourceFactory;
use Sylius\Bundle\ThemeBundle\DependencyInjection\Configuration;
use Symfony\Component\Config\Definition\ConfigurationInterface;
final class ConfigurationTest extends \PHPUnit_Framework_TestCase
final class ConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;

View file

@ -13,6 +13,7 @@ declare(strict_types=1);
namespace Sylius\Bundle\ThemeBundle\Tests\Translation;
use PHPUnit\Framework\TestCase;
use Sylius\Bundle\ThemeBundle\Translation\Provider\Loader\TranslatorLoaderProvider;
use Sylius\Bundle\ThemeBundle\Translation\Provider\Resource\TranslatorResourceProvider;
use Sylius\Bundle\ThemeBundle\Translation\Translator;
@ -23,7 +24,7 @@ use Symfony\Component\Translation\MessageSelector;
/**
* @see \Symfony\Component\Translation\Tests\TranslatorTest
*/
final class TranslatorTest extends \PHPUnit_Framework_TestCase
final class TranslatorTest extends TestCase
{
/**
* @test