Skip to content
This repository has been archived by the owner on Apr 21, 2018. It is now read-only.

Commit

Permalink
update for symfony 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Zogg committed Dec 13, 2015
1 parent a931c7c commit ace7d86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
"php": ">=5.3.3,<8.0",
"knplabs/knp-components": "~1.2,>=1.2.5",
"pimple/pimple": ">=2.1,<4",
"symfony/http-kernel": "~2.3",
"symfony/translation": "~2.3",
"symfony/http-kernel": "~2.3|~3.0",
"symfony/translation": "~2.3|~3.0",
"twig/twig": "~1.2"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"silex/api": "~2.0@dev",
"silex/providers": "~2.0@dev",
"symfony/routing": "~2.3"
"symfony/routing": "~2.3|~3.0"
},
"suggest": {
"silex/silex": "~1.2"
Expand Down
6 changes: 4 additions & 2 deletions tests/Provider/SaxulumPaginationProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Pimple\Container;
use Saxulum\PaginationProvider\Provider\SaxulumPaginationProvider;
use Silex\Provider\HttpKernelServiceProvider;
use Silex\Provider\LocaleServiceProvider;
use Silex\Provider\TranslationServiceProvider;
use Silex\Provider\KernelServiceProvider;
use Silex\Provider\RoutingServiceProvider;
use Silex\Provider\TwigServiceProvider;
use Symfony\Component\Routing\RouteCollection;
Expand All @@ -16,12 +16,14 @@ class SaxulumPaginationProviderTest extends \PHPUnit_Framework_TestCase
public function testProvider()
{
$container = new Container();
$container['debug'] = true;
$container['charset'] = 'utf-8';

$container['routes'] = function () {
return new RouteCollection();
};

$container->register(new KernelServiceProvider());
$container->register(new HttpKernelServiceProvider());
$container->register(new RoutingServiceProvider());
$container->register(new LocaleServiceProvider());
$container->register(new TwigServiceProvider());
Expand Down

0 comments on commit ace7d86

Please sign in to comment.