Skip to content

Commit

Permalink
Merge pull request #2327 from acrobat/redirectbundle-upgrade-dev
Browse files Browse the repository at this point in the history
[RedirectBundle] upgraded dev dependencies
  • Loading branch information
sandergo90 committed Feb 1, 2019
2 parents d1be20f + 584a842 commit 8e54dbe
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 21 deletions.
6 changes: 6 additions & 0 deletions src/Kunstmaan/RedirectBundle/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
.idea
composer.lock
composer.phar
vendor/*
*.orig
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
use Kunstmaan\AdminBundle\Helper\Security\Acl\AclHelper;
use Kunstmaan\AdminListBundle\AdminList\Field;
use Kunstmaan\RedirectBundle\AdminList\RedirectAdminListConfigurator;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

/**
* Class RedirectAdminListConfiguratorTest
*/
class RedirectAdminListConfiguratorTest extends PHPUnit_Framework_TestCase
class RedirectAdminListConfiguratorTest extends TestCase
{
/**
* @var EntityManager
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

use Kunstmaan\RedirectBundle\DependencyInjection\Configuration;
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

/**
* Class ConfigurationTest
*/
class ConfigurationTest extends PHPUnit_Framework_TestCase
class ConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
namespace Kunstmaan\RedirectBundle\Tests\DependencyInjection;

use Kunstmaan\RedirectBundle\DependencyInjection\KunstmaanRedirectExtension;
use Matthias\SymfonyDependencyInjectionTest\PhpUnit\AbstractExtensionTestCase;
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
use Kunstmaan\AdminBundle\Tests\unit\AbstractPrependableExtensionTestCase;

/**
* Class KunstmaanRedirectExtensionTest
*/
class KunstmaanRedirectExtensionTest extends AbstractPrependableExtensionTestCase
class KunstmaanRedirectExtensionTest extends AbstractExtensionTestCase
{
/**
* @return ExtensionInterface[]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
namespace Kunstmaan\RedirectBundle\Tests\Entity;

use Kunstmaan\RedirectBundle\Entity\Redirect;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Validator\Context\ExecutionContext;
use Symfony\Component\Validator\Violation\ConstraintViolationBuilder;

/**
* Class RedirectTest
*/
class RedirectTest extends PHPUnit_Framework_TestCase
class RedirectTest extends TestCase
{
/**
* @var Redirect
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

use Kunstmaan\AdminBundle\Helper\DomainConfigurationInterface;
use Kunstmaan\RedirectBundle\Form\RedirectAdminType;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;

/**
* Class RedirectAdminTypeTest
*/
class RedirectAdminTypeTest extends PHPUnit_Framework_TestCase
class RedirectAdminTypeTest extends TestCase
{
/**
* @var RedirectAdminType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
use Doctrine\Common\Persistence\ObjectRepository;
use Kunstmaan\RedirectBundle\Entity\Redirect;
use Kunstmaan\RedirectBundle\Router\RedirectRouter;
use PHPUnit_Framework_TestCase;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Routing\RequestContext;

/**
* Class RedirectRouterTest
*/
class RedirectRouterTest extends PHPUnit_Framework_TestCase
class RedirectRouterTest extends TestCase
{
/**
* @var RedirectRouter
Expand Down Expand Up @@ -113,12 +112,17 @@ public function testGetRouteCollectionf()
$this->assertEquals(3, $collection->count());
}

/**
* @expectedException \Symfony\Component\Routing\Exception\RouteNotFoundException
*/
public function testGenerate()
{
$this->setExpectedException(RouteNotFoundException::class);
$this->firstObject->generate('test');
}

/**
* @expectedException \Symfony\Component\Routing\Exception\ResourceNotFoundException
*/
public function testMatch()
{
$redirect = $this->firstObject->match('/test1');
Expand Down Expand Up @@ -154,10 +158,8 @@ public function testMatch()
$redirect
);

$this->setExpectedException('Symfony\Component\Routing\Exception\ResourceNotFoundException');
$this->firstObject->match('/testnotfound');

$this->setExpectedException('Symfony\Component\Routing\Exception\ResourceNotFoundException');
$this->firstObject->match('/test4');

$redirect = $this->secondObject->match('/test4');
Expand Down
10 changes: 5 additions & 5 deletions src/Kunstmaan/RedirectBundle/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"symfony-cmf/routing-bundle": "~2.0"
},
"require-dev": {
"codeception/codeception": "^2.4",
"matthiasnoback/symfony-config-test": "2.2.0",
"matthiasnoback/symfony-dependency-injection-test": "1.2.0",
"phpunit/phpunit": "^5.7",
"symfony/phpunit-bridge": "~3.0"
"codeception/codeception": "^2.5",
"matthiasnoback/symfony-config-test": "^4.0",
"matthiasnoback/symfony-dependency-injection-test": "^3.1",
"symfony/phpunit-bridge": "^4.2",
"phpunit/phpunit": "^7.5"
},
"minimum-stability": "dev",
"autoload": {
Expand Down

0 comments on commit 8e54dbe

Please sign in to comment.