Skip to content

Commit 4e491fb

Browse files
committed
Update dependencies and fix tests
1 parent 178e691 commit 4e491fb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Tests/Routing/RouterTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
use Dunglas\ApiBundle\Routing\Router;
1515
use Prophecy\Argument;
1616
use Symfony\Component\Routing\RequestContext;
17-
use Symfony\Component\Routing\RouteCollection;
1817
use Symfony\Component\Routing\Router as SymfonyRouter;
18+
use Symfony\Component\Routing\RouteCollection;
19+
use Symfony\Component\Routing\RouterInterface;
1920

2021
/**
2122
* @author Kévin Dunglas <[email protected]>
@@ -49,7 +50,7 @@ public function testGetRouteCollection()
4950
public function testGenerate()
5051
{
5152
$mockedRouter = $this->prophesize('Symfony\Component\Routing\RouterInterface');
52-
$mockedRouter->generate('foo', [], false)->willReturn('/bar')->shouldBeCalled();
53+
$mockedRouter->generate('foo', [], RouterInterface::ABSOLUTE_PATH)->willReturn('/bar')->shouldBeCalled();
5354

5455
$router = new Router($mockedRouter->reveal());
5556
$this->assertSame('/bar', $router->generate('foo'));

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@
3030
"behat/mink": "~1.5",
3131
"behat/mink-extension": "~2.0",
3232
"behat/mink-browserkit-driver": "~1.1",
33-
"behatch/contexts": "dev-master#eef7ab39ca896796bf3ba25a0fa5a95f15276eb7",
33+
"behatch/contexts": "~2.3",
3434
"symfony/finder": "~2.3",
35-
"phpunit/phpunit": "~4.6",
3635
"doctrine/orm": "~2.2,>=2.2.3",
3736
"doctrine/doctrine-bundle": "~1.2",
38-
"php-mock/php-mock-phpunit": "^0.3"
37+
"php-mock/php-mock-phpunit": "~1.1"
3938
},
4039
"suggest": {
4140
"doctrine/doctrine-bundle": "To use the Doctrine ORM bridge.",

0 commit comments

Comments
 (0)