diff --git a/.travis.yml b/.travis.yml index 631a4f4..c86b32d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ language: php sudo: false php: - - 5.6 - 7.0 - 7.1 - 7.2 diff --git a/Features/Context/ProductContextTrait.php b/Features/Context/ProductContextTrait.php index a598e15..9ee8df3 100644 --- a/Features/Context/ProductContextTrait.php +++ b/Features/Context/ProductContextTrait.php @@ -4,7 +4,7 @@ use Behat\Gherkin\Node\TableNode; use Doctrine\ORM\EntityManagerInterface; -use PHPUnit_Framework_Assert; +use PHPUnit\Framework\Assert; use Worldia\Bundle\ProductTestBundle\Entity\Product; trait ProductContextTrait @@ -63,8 +63,8 @@ public function createProductTranslations(Product $product, TableNode $table) public function assertProductTranslations(Product $product, TableNode $table) { foreach ($table->getHash() as $data) { - PHPUnit_Framework_Assert::assertSame($data['title'], $product->getTranslation($data['locale'])->getTitle()); - PHPUnit_Framework_Assert::assertSame($data['description'], $product->getTranslation($data['locale'])->getDescription()); + Assert::assertSame($data['title'], $product->getTranslation($data['locale'])->getTitle()); + Assert::assertSame($data['description'], $product->getTranslation($data['locale'])->getDescription()); } } } diff --git a/Features/Context/TranslationContextTrait.php b/Features/Context/TranslationContextTrait.php index 5dec5aa..be97543 100644 --- a/Features/Context/TranslationContextTrait.php +++ b/Features/Context/TranslationContextTrait.php @@ -4,7 +4,7 @@ use Behat\Gherkin\Node\TableNode; use Doctrine\ORM\EntityManagerInterface; -use PHPUnit_Framework_Assert; +use PHPUnit\Framework\Assert;; use Symfony\Component\HttpKernel\KernelInterface; use Worldia\Bundle\TextmasterBundle\Entity\JobInterface; use Worldia\Bundle\TextmasterBundle\EntityManager\JobManagerInterface; @@ -75,11 +75,11 @@ public function assertJobs(TableNode $table) foreach ($table->getHash() as $data) { $job = $this->findJob($data['id']); - PHPUnit_Framework_Assert::assertSame($data['status'], $job->getStatus()); - PHPUnit_Framework_Assert::assertSame($data['locale'], $job->getLocale()); - PHPUnit_Framework_Assert::assertSame((int) $data['translatable'], $job->getTranslatable()->getId()); - PHPUnit_Framework_Assert::assertSame($data['project'], $job->getProjectId()); - PHPUnit_Framework_Assert::assertSame($data['document'], $job->getDocumentId()); + Assert::assertSame($data['status'], $job->getStatus()); + Assert::assertSame($data['locale'], $job->getLocale()); + Assert::assertSame((int) $data['translatable'], $job->getTranslatable()->getId()); + Assert::assertSame($data['project'], $job->getProjectId()); + Assert::assertSame($data['document'], $job->getDocumentId()); } } @@ -105,13 +105,13 @@ public function createTranslationProject(TableNode $table) ); if (null !== $project) { - PHPUnit_Framework_Assert::assertSame($data['name'], $project->getName()); - PHPUnit_Framework_Assert::assertSame(isset($data['activity']) ? $data['activity'] : null, $project->getActivity()); - PHPUnit_Framework_Assert::assertSame($data['languageFrom'], $project->getLanguageFrom()); - PHPUnit_Framework_Assert::assertSame(isset($data['languageTo']) ? $data['languageTo'] : null, $project->getLanguageTo()); - PHPUnit_Framework_Assert::assertSame($data['category'], $project->getCategory()); - PHPUnit_Framework_Assert::assertSame($data['briefing'], $project->getBriefing()); - PHPUnit_Framework_Assert::assertSame(json_decode($data['options'], true), $project->getOptions()); + Assert::assertSame($data['name'], $project->getName()); + Assert::assertSame(isset($data['activity']) ? $data['activity'] : null, $project->getActivity()); + Assert::assertSame($data['languageFrom'], $project->getLanguageFrom()); + Assert::assertSame(isset($data['languageTo']) ? $data['languageTo'] : null, $project->getLanguageTo()); + Assert::assertSame($data['category'], $project->getCategory()); + Assert::assertSame($data['briefing'], $project->getBriefing()); + Assert::assertSame(json_decode($data['options'], true), $project->getOptions()); } } } @@ -121,7 +121,7 @@ public function createTranslationProject(TableNode $table) */ public function assertJobStatus(JobInterface $job, $status) { - PHPUnit_Framework_Assert::assertSame($status, $job->getStatus()); + Assert::assertSame($status, $job->getStatus()); } /** @@ -131,7 +131,7 @@ public function assertTranslatablesWithJob($number, $class, $locale) { $count = count($this->getJobManager()->getTranslatablesWithJobAndLocale($class, $locale)); - PHPUnit_Framework_Assert::assertSame((int) $number, $count); + Assert::assertSame((int) $number, $count); } /** diff --git a/Resources/config/services.xml b/Resources/config/services.xml index 553840d..3c00ccc 100644 --- a/Resources/config/services.xml +++ b/Resources/config/services.xml @@ -39,7 +39,7 @@ - + @@ -57,20 +57,20 @@ - + - + %worldia.textmaster.copywriting_word_count% - + @@ -89,7 +89,7 @@ - + %worldia.textmaster.job.class% diff --git a/Tests/Fixtures/Project/app/AppKernel.php b/Tests/Fixtures/Project/app/AppKernel.php index 1bbe2c3..a9f6d0b 100644 --- a/Tests/Fixtures/Project/app/AppKernel.php +++ b/Tests/Fixtures/Project/app/AppKernel.php @@ -39,8 +39,12 @@ public function getLogDir() private function guessTempDirectoryFor($dirname) { - return is_writable(__DIR__.'/../../../../build/tmp') ? + $dir = is_writable(__DIR__.'/../../../../build/tmp') ? __DIR__.'/build/tmp/'.$dirname : sys_get_temp_dir().'/'.$this->mainBundle.'/'.$dirname; + + // var_dump($dir); + // die; + return $dir; } } diff --git a/Tests/Fixtures/Project/app/config/config_test.yml b/Tests/Fixtures/Project/app/config/config_test.yml index c6f0d31..ef06038 100644 --- a/Tests/Fixtures/Project/app/config/config_test.yml +++ b/Tests/Fixtures/Project/app/config/config_test.yml @@ -5,7 +5,7 @@ framework: secret: test test: ~ router: - resource: %kernel.root_dir%/config/routing.yml + resource: '%kernel.root_dir%/config/routing.yml' session: storage_id: session.storage.mock_file form: true @@ -29,6 +29,7 @@ services: worldia.textmaster.project.api: class: Worldia\Bundle\ProductTestBundle\Service\ProjectApi arguments: ['@worldia.textmaster.api.client', '@worldia.textmaster.document.api'] + public: true worldia.textmaster.project_author.api: class: Worldia\Bundle\ProductTestBundle\Service\Project\AuthorApi diff --git a/Tests/Fixtures/Project/src/Worldia/Bundle/ProductTestBundle/Entity/TranslatableInterface.php b/Tests/Fixtures/Project/src/Worldia/Bundle/ProductTestBundle/Entity/TranslatableInterface.php index f339d99..f7f2ae5 100644 --- a/Tests/Fixtures/Project/src/Worldia/Bundle/ProductTestBundle/Entity/TranslatableInterface.php +++ b/Tests/Fixtures/Project/src/Worldia/Bundle/ProductTestBundle/Entity/TranslatableInterface.php @@ -4,6 +4,8 @@ interface TranslatableInterface { + public function getId(); + /** * Translation method. * diff --git a/Tests/Units/DependencyInjection/ConfigurationTest.php b/Tests/Units/DependencyInjection/ConfigurationTest.php index 7a6cad4..10666dc 100644 --- a/Tests/Units/DependencyInjection/ConfigurationTest.php +++ b/Tests/Units/DependencyInjection/ConfigurationTest.php @@ -3,9 +3,10 @@ namespace Worldia\Bundle\TextmasterBundle\Tests\Units\DependencyInjection; use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait; +use PHPUnit\Framework\TestCase; use Worldia\Bundle\TextmasterBundle\DependencyInjection\Configuration; -class ConfigurationTest extends \PHPUnit_Framework_TestCase +class ConfigurationTest extends TestCase { use ConfigurationTestCaseTrait; diff --git a/Tests/Units/EntityManager/JobManagerTest.php b/Tests/Units/EntityManager/JobManagerTest.php index 1b6839a..8afd74c 100644 --- a/Tests/Units/EntityManager/JobManagerTest.php +++ b/Tests/Units/EntityManager/JobManagerTest.php @@ -2,11 +2,12 @@ namespace Worldia\Bundle\TextmasterBundle\Tests\Units\EntityManager; +use PHPUnit\Framework\TestCase; use Worldia\Bundle\TextmasterBundle\Entity\Job; use Worldia\Bundle\TextmasterBundle\Entity\JobInterface; use Worldia\Bundle\TextmasterBundle\EntityManager\JobManager; -class JobManagerTest extends \PHPUnit_Framework_TestCase +class JobManagerTest extends TestCase { protected $entityManagerMock; protected $textmasterManagerMock; @@ -16,7 +17,7 @@ class JobManagerTest extends \PHPUnit_Framework_TestCase public function setUp() { - $this->entityManagerMock = $this->getMock('Doctrine\ORM\EntityManagerInterface'); + $this->entityManagerMock = $this->createMock('Doctrine\ORM\EntityManagerInterface'); $this->textmasterManagerMock = $this ->getMockBuilder('Textmaster\Manager') @@ -28,7 +29,7 @@ public function setUp() ->disableOriginalConstructor() ->getMock(); - $this->translatableMock = $this->getMock('TranslatableInterface', array('getId')); + $this->translatableMock = $this->createMock('Worldia\Bundle\ProductTestBundle\Entity\TranslatableInterface', array('getId')); $this->translatableMock->expects($this->once()) ->method('getId') ->willReturn(1); diff --git a/Tests/Units/EventListener/DocumentListenerTest.php b/Tests/Units/EventListener/DocumentListenerTest.php index 55e552b..fbd0ce8 100644 --- a/Tests/Units/EventListener/DocumentListenerTest.php +++ b/Tests/Units/EventListener/DocumentListenerTest.php @@ -2,11 +2,12 @@ namespace Worldia\Bundle\TextmasterBundle\Tests\Units\EventListener; +use PHPUnit\Framework\TestCase; use Textmaster\Events; use Textmaster\Model\Project; use Worldia\Bundle\TextmasterBundle\EventListener\DocumentListener; -class DocumentListenerTest extends \PHPUnit_Framework_TestCase +class DocumentListenerTest extends TestCase { /** * @var DocumentListener @@ -20,11 +21,11 @@ class DocumentListenerTest extends \PHPUnit_Framework_TestCase public function setUp() { - $this->jobManagerMock = $this->getMock('Worldia\Bundle\TextmasterBundle\EntityManager\JobManagerInterface'); - $this->translatorMock = $this->getMock('Textmaster\Translator\TranslatorInterface'); + $this->jobManagerMock = $this->createMock('Worldia\Bundle\TextmasterBundle\EntityManager\JobManagerInterface'); + $this->translatorMock = $this->createMock('Textmaster\Translator\TranslatorInterface'); - $this->eventMock = $this->getMock('Symfony\Component\EventDispatcher\GenericEvent'); - $this->documentMock = $this->getMock('Textmaster\Model\DocumentInterface'); + $this->eventMock = $this->createMock('Symfony\Component\EventDispatcher\GenericEvent'); + $this->documentMock = $this->createMock('Textmaster\Model\DocumentInterface'); $this->listener = new DocumentListener($this->jobManagerMock, $this->translatorMock); } @@ -49,8 +50,8 @@ public function shouldGetSubscribedEvents() */ public function shouldCreateJobWhenDocumentInCreation() { - $objectMock = $this->getMock('ObjectInterface'); - $projectMock = $this->getMock('Textmaster\Model\ProjectInterface'); + $objectMock = $this->createMock('Worldia\Bundle\ProductTestBundle\Entity\Product'); + $projectMock = $this->createMock('Textmaster\Model\ProjectInterface'); $this->eventMock->expects($this->once()) ->method('getSubject') @@ -83,7 +84,7 @@ public function shouldCreateJobWhenDocumentInCreation() public function shouldFinishJobWhenDocumentInReview() { $eventMock = $this->getMockBuilder('Textmaster\Event\CallbackEvent')->disableOriginalConstructor()->getMock(); - $jobMock = $this->getMock('Worldia\Bundle\TextmasterBundle\Entity\JobInterface'); + $jobMock = $this->createMock('Worldia\Bundle\TextmasterBundle\Entity\JobInterface'); $eventMock->expects($this->once()) ->method('getSubject') @@ -104,7 +105,7 @@ public function shouldFinishJobWhenDocumentInReview() */ public function shouldValidateJobWhenDocumentCompleted() { - $jobMock = $this->getMock('Worldia\Bundle\TextmasterBundle\Entity\JobInterface'); + $jobMock = $this->createMock('Worldia\Bundle\TextmasterBundle\Entity\JobInterface'); $this->eventMock->expects($this->once()) ->method('getSubject') @@ -125,7 +126,7 @@ public function shouldValidateJobWhenDocumentCompleted() */ public function shouldStartJobWhenDocumentIncomplete() { - $jobMock = $this->getMock('Worldia\Bundle\TextmasterBundle\Entity\JobInterface'); + $jobMock = $this->createMock('Worldia\Bundle\TextmasterBundle\Entity\JobInterface'); $this->eventMock->expects($this->once()) ->method('getSubject') diff --git a/Tests/Units/EventListener/JobListenerTest.php b/Tests/Units/EventListener/JobListenerTest.php index 4604269..fb66e00 100644 --- a/Tests/Units/EventListener/JobListenerTest.php +++ b/Tests/Units/EventListener/JobListenerTest.php @@ -3,9 +3,10 @@ namespace Worldia\Bundle\TextmasterBundle\Tests\Units\EventListener; use Doctrine\ORM\Events; +use PHPUnit\Framework\TestCase; use Worldia\Bundle\TextmasterBundle\EventListener\JobListener; -class JobListenerTest extends \PHPUnit_Framework_TestCase +class JobListenerTest extends TestCase { /** * @var JobListener @@ -42,10 +43,10 @@ public function shouldGetSubscribedEvents() */ public function shouldSetTranslatableOnPostLoad() { - $jobMock = $this->getMock('Worldia\Bundle\TextmasterBundle\Entity\JobInterface'); - $translatableMock = $this->getMock('TranslatableInterface'); - $objectManagerMock = $this->getMock('Doctrine\Common\Persistence\ObjectManager'); - $objectRepositoryMock = $this->getMock('Doctrine\Common\Persistence\ObjectRepository'); + $jobMock = $this->createMock('Worldia\Bundle\TextmasterBundle\Entity\JobInterface'); + $translatableMock = $this->createMock('Worldia\Bundle\ProductTestBundle\Entity\TranslatableInterface'); + $objectManagerMock = $this->createMock('Doctrine\Common\Persistence\ObjectManager'); + $objectRepositoryMock = $this->createMock('Doctrine\Common\Persistence\ObjectRepository'); $this->eventMock->expects($this->once()) ->method('getEntity') diff --git a/Tests/Units/EventListener/ProjectListenerTest.php b/Tests/Units/EventListener/ProjectListenerTest.php index f35e561..93c1855 100644 --- a/Tests/Units/EventListener/ProjectListenerTest.php +++ b/Tests/Units/EventListener/ProjectListenerTest.php @@ -2,10 +2,11 @@ namespace Worldia\Bundle\TextmasterBundle\Tests\Units\EventListener; +use PHPUnit\Framework\TestCase; use Textmaster\Events; use Worldia\Bundle\TextmasterBundle\EventListener\ProjectListener; -class ProjectListenerTest extends \PHPUnit_Framework_TestCase +class ProjectListenerTest extends TestCase { /** * @var ProjectListener @@ -16,7 +17,7 @@ class ProjectListenerTest extends \PHPUnit_Framework_TestCase public function setUp() { - $this->jobManagerMock = $this->getMock('Worldia\Bundle\TextmasterBundle\EntityManager\JobManagerInterface'); + $this->jobManagerMock = $this->createMock('Worldia\Bundle\TextmasterBundle\EntityManager\JobManagerInterface'); $this->listener = new ProjectListener($this->jobManagerMock); } @@ -39,7 +40,7 @@ public function shouldGetSubscribedEvents() public function shouldStartJobsWhenProjectInProgress() { $eventMock = $this->getMockBuilder('Textmaster\Event\CallbackEvent')->disableOriginalConstructor()->getMock(); - $projectMock = $this->getMock('Textmaster\Model\ProjectInterface'); + $projectMock = $this->createMock('Textmaster\Model\ProjectInterface'); $eventMock->expects($this->once()) ->method('getSubject') @@ -57,7 +58,7 @@ public function shouldStartJobsWhenProjectInProgress() public function shouldLaunchProjectWhenProjectMemoryCompleted() { $eventMock = $this->getMockBuilder('Textmaster\Event\CallbackEvent')->disableOriginalConstructor()->getMock(); - $projectMock = $this->getMock('Textmaster\Model\ProjectInterface'); + $projectMock = $this->createMock('Textmaster\Model\ProjectInterface'); $eventMock->expects($this->once()) ->method('getSubject') diff --git a/Tests/Units/Translation/TranslationGeneratorTest.php b/Tests/Units/Translation/TranslationGeneratorTest.php index bf76a84..915490a 100644 --- a/Tests/Units/Translation/TranslationGeneratorTest.php +++ b/Tests/Units/Translation/TranslationGeneratorTest.php @@ -2,19 +2,20 @@ namespace Worldia\Bundle\TextmasterBundle\Tests\Units\Translation; +use PHPUnit\Framework\TestCase; use Textmaster\Model\ProjectInterface; use Worldia\Bundle\TextmasterBundle\Translation\TranslationGenerator; -class TranslationGeneratorTest extends \PHPUnit_Framework_TestCase +class TranslationGeneratorTest extends TestCase { /** * @test */ public function shouldGenerateProject() { - $translationManagerMock = $this->getMock('Worldia\Bundle\TextmasterBundle\Translation\TranslationManagerInterface'); - $translatableFinderMock = $this->getMock('Worldia\Bundle\TextmasterBundle\Translation\TranslatableFinderInterface'); - $translatableMock = $this->getMock('TranslatableInterface'); + $translationManagerMock = $this->createMock('Worldia\Bundle\TextmasterBundle\Translation\TranslationManagerInterface'); + $translatableFinderMock = $this->createMock('Worldia\Bundle\TextmasterBundle\Translation\TranslatableFinderInterface'); + $translatableMock = $this->createMock('Worldia\Bundle\ProductTestBundle\Entity\TranslatableInterface'); $projectMock = $this->getMockBuilder('Textmaster\Model\Project')->disableOriginalConstructor()->getMock(); $translatableFinderMock->expects($this->once()) @@ -48,9 +49,9 @@ public function shouldGenerateProject() */ public function shouldGenerateProjectWithTranslationMemory() { - $translationManagerMock = $this->getMock('Worldia\Bundle\TextmasterBundle\Translation\TranslationManagerInterface'); - $translatableFinderMock = $this->getMock('Worldia\Bundle\TextmasterBundle\Translation\TranslatableFinderInterface'); - $translatableMock = $this->getMock('TranslatableInterface'); + $translationManagerMock = $this->createMock('Worldia\Bundle\TextmasterBundle\Translation\TranslationManagerInterface'); + $translatableFinderMock = $this->createMock('Worldia\Bundle\TextmasterBundle\Translation\TranslatableFinderInterface'); + $translatableMock = $this->createMock('Worldia\Bundle\ProductTestBundle\Entity\TranslatableInterface'); $projectMock = $this->getMockBuilder('Textmaster\Model\Project')->disableOriginalConstructor()->getMock(); $translatableFinderMock->expects($this->once()) @@ -81,9 +82,9 @@ public function shouldGenerateProjectWithTranslationMemory() */ public function shouldGenerateProjectWithLimit() { - $translationManagerMock = $this->getMock('Worldia\Bundle\TextmasterBundle\Translation\TranslationManagerInterface'); - $translatableFinderMock = $this->getMock('Worldia\Bundle\TextmasterBundle\Translation\TranslatableFinderInterface'); - $translatableMock = $this->getMock('TranslatableInterface'); + $translationManagerMock = $this->createMock('Worldia\Bundle\TextmasterBundle\Translation\TranslationManagerInterface'); + $translatableFinderMock = $this->createMock('Worldia\Bundle\TextmasterBundle\Translation\TranslatableFinderInterface'); + $translatableMock = $this->createMock('Worldia\Bundle\ProductTestBundle\Entity\TranslatableInterface'); $projectMock = $this->getMockBuilder('Textmaster\Model\Project')->disableOriginalConstructor()->getMock(); $translatableFinderMock->expects($this->once()) diff --git a/Tests/Units/Translation/TranslationManagerTest.php b/Tests/Units/Translation/TranslationManagerTest.php index 4eb1733..fa52678 100644 --- a/Tests/Units/Translation/TranslationManagerTest.php +++ b/Tests/Units/Translation/TranslationManagerTest.php @@ -2,9 +2,10 @@ namespace Worldia\Bundle\TextmasterBundle\Tests\Units\Translation; +use PHPUnit\Framework\TestCase; use Worldia\Bundle\TextmasterBundle\Translation\TranslationManager; -class TranslationManagerTest extends \PHPUnit_Framework_TestCase +class TranslationManagerTest extends TestCase { /** * @test @@ -12,13 +13,13 @@ class TranslationManagerTest extends \PHPUnit_Framework_TestCase public function shouldCreateProject() { $textmasterManagerMock = $this->getMockBuilder('Textmaster\Manager')->disableOriginalConstructor()->getMock(); - $routerMock = $this->getMock('Symfony\Component\Routing\Generator\UrlGeneratorInterface'); + $routerMock = $this->createMock('Symfony\Component\Routing\Generator\UrlGeneratorInterface'); $translatorMock = $this->getMockBuilder('Textmaster\Translator\Translator')->setMethods(['push'])->disableOriginalConstructor()->getMock(); $projectMock = $this->getMockBuilder('Textmaster\Model\Project')->disableOriginalConstructor()->getMock(); - $translatableMock = $this->getMock('TranslatableInterface', ['getId']); - $documentMock = $this->getMock('Textmaster\Model\DocumentInterface'); - $authorMock = $this->getMock('Textmaster\Model\AuthorInterface'); + $translatableMock = $this->createMock('Worldia\Bundle\ProductTestBundle\Entity\TranslatableInterface', ['getId']); + $documentMock = $this->createMock('Textmaster\Model\DocumentInterface'); + $authorMock = $this->createMock('Textmaster\Model\AuthorInterface'); $textmasterManagerMock->expects($this->once()) ->method('getProject') @@ -87,13 +88,13 @@ public function shouldCreateProject() public function shouldCreateProjectWithTranslationMemory() { $textmasterManagerMock = $this->getMockBuilder('Textmaster\Manager')->disableOriginalConstructor()->getMock(); - $routerMock = $this->getMock('Symfony\Component\Routing\Generator\UrlGeneratorInterface'); + $routerMock = $this->createMock('Symfony\Component\Routing\Generator\UrlGeneratorInterface'); $translatorMock = $this->getMockBuilder('Textmaster\Translator\Translator')->setMethods(['push'])->disableOriginalConstructor()->getMock(); $projectMock = $this->getMockBuilder('Textmaster\Model\Project')->disableOriginalConstructor()->getMock(); - $translatableMock = $this->getMock('TranslatableInterface', ['getId']); - $documentMock = $this->getMock('Textmaster\Model\DocumentInterface'); - $authorMock = $this->getMock('Textmaster\Model\AuthorInterface'); + $translatableMock = $this->createMock('Worldia\Bundle\ProductTestBundle\Entity\TranslatableInterface', ['getId']); + $documentMock = $this->createMock('Textmaster\Model\DocumentInterface'); + $authorMock = $this->createMock('Textmaster\Model\AuthorInterface'); $textmasterManagerMock->expects($this->once()) ->method('getProject') diff --git a/behat.yml b/behat.yml index a726565..6a22912 100644 --- a/behat.yml +++ b/behat.yml @@ -1,6 +1,6 @@ default: autoload: - '': %paths.base%/Features/Context + '': '%paths.base%/Features/Context' suites: default: type: symfony_bundle @@ -13,6 +13,6 @@ default: Behat\Symfony2Extension: kernel: env: test - debug: false + debug: true path: Tests/Fixtures/Project/app/AppKernel.php bootstrap: Tests/Fixtures/Project/app/bootstrap.php diff --git a/composer.json b/composer.json index 326fa4f..2abdf33 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": ">=5.6.0", + "php": ">=7.0", "worldia/textmaster-api": "^1.0", "symfony/framework-bundle": "^3.2", "symfony/property-access": "^3.2", @@ -23,13 +23,13 @@ "doctrine/doctrine-bundle": "^1.5" }, "require-dev": { - "phpunit/phpunit": "~4.0", + "phpunit/phpunit": "^6.0", "symfony/browser-kit": "^3.2", "symfony/twig-bundle": "^3.2", "symfony/templating": "^3.2", "symfony/asset": "^3.2", - "matthiasnoback/symfony-config-test": "^1.4", - "matthiasnoback/symfony-dependency-injection-test": "0.*", + "matthiasnoback/symfony-config-test": "^3.0", + "matthiasnoback/symfony-dependency-injection-test": "^2.0", "behat/symfony2-extension": "2.1.*", "white-october/pagerfanta-bundle": "^1.0" },