Skip to content

Commit a28853a

Browse files
committed
Merge pull request #239 from FriendsOfSymfony/symfony-2.8
Test against Symfony 2.8
2 parents aa20b2a + 34cb52b commit a28853a

File tree

7 files changed

+43
-24
lines changed

7 files changed

+43
-24
lines changed

.travis.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ php:
44
- 5.3
55
- 5.4
66
- 5.5
7+
- 5.6
78
- 7.0
89
- hhvm
910

@@ -18,23 +19,27 @@ matrix:
1819
env:
1920
- PHPUNIT_FLAGS="--coverage-clover=coverage.clover"
2021
- COVERAGE=true
21-
- php: 5.5
22+
- php: 5.6
2223
env: SYMFONY_VERSION='2.3.*'
23-
- php: 5.5
24+
- php: 5.6
2425
env:
2526
- SYMFONY_VERSION='2.4.*'
2627
- FRAMEWORK_EXTRA_VERSION='~3.0'
27-
- php: 5.5
28+
- php: 5.6
2829
env:
2930
- SYMFONY_VERSION='2.5.*'
3031
- FRAMEWORK_EXTRA_VERSION='~3.0'
31-
- php: 5.5
32+
- php: 5.6
3233
env:
3334
- SYMFONY_VERSION='2.6.*'
3435
- FRAMEWORK_EXTRA_VERSION='~3.0'
35-
- php: 5.5
36+
- php: 5.6
37+
env:
38+
- SYMFONY_VERSION='2.7.*'
39+
- FRAMEWORK_EXTRA_VERSION='~3.0'
40+
- php: 5.6
3641
env:
37-
- SYMFONY_VERSION='2.7.*@dev'
42+
- SYMFONY_VERSION='2.8.*@dev'
3843
- FRAMEWORK_EXTRA_VERSION='~3.0'
3944

4045
before_script:
@@ -45,7 +50,7 @@ before_script:
4550
- sudo pip install -r Resources/doc/requirements.txt
4651

4752
script:
48-
- phpunit ${PHPUNIT_FLAGS}
53+
- SYMFONY_DEPRECATIONS_HELPER=weak phpunit ${PHPUNIT_FLAGS}
4954
- make -C Resources/doc SPHINXOPTS='-nW' html
5055
- make -C Resources/doc spelling
5156

DependencyInjection/FOSHttpCacheExtension.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -335,13 +335,11 @@ private function loadTest(ContainerBuilder $container, XmlFileLoader $loader, ar
335335
$loader->load('test_client.xml');
336336

337337
if ($config['client']['varnish']['enabled']) {
338-
$container->getDefinition($this->getAlias().'.test.client.varnish')
339-
->setAbstract(false);
338+
$loader->load('varnish_test_client.xml');
340339
}
341340

342341
if ($config['client']['nginx']['enabled']) {
343-
$container->getDefinition($this->getAlias().'.test.client.nginx')
344-
->setAbstract(false);
342+
$loader->load('nginx_test_client.xml');
345343
}
346344

347345
$container->setAlias(

Resources/config/nginx.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
<argument>%fos_http_cache.proxy_client.nginx.purge_location%</argument>
1717
<argument type="service" id="fos_http_cache.proxy_client.nginx.guzzle_client" on-invalid="ignore"/>
1818
</service>
19-
20-
<service id="fos_http_cache.test.client.nginx"
21-
parent="fos_http_cache.test.client.abstract"
22-
abstract="true">
23-
<argument index="0">%fos_http_cache.proxy_client.nginx.base_url%</argument>
24-
</service>
2519
</services>
2620

2721
</container>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" ?>
2+
3+
<container xmlns="http://symfony.com/schema/dic/services"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
6+
7+
<services>
8+
<service id="fos_http_cache.test.client.nginx"
9+
parent="fos_http_cache.test.client.abstract">
10+
<argument index="0">%fos_http_cache.proxy_client.nginx.base_url%</argument>
11+
</service>
12+
</services>
13+
14+
</container>

Resources/config/varnish.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
<argument type="service" id="fos_http_cache.proxy_client.varnish.guzzle_client" on-invalid="ignore"/>
1717
</service>
1818

19-
<service id="fos_http_cache.test.client.varnish"
20-
parent="fos_http_cache.test.client.abstract"
21-
abstract="true">
22-
<argument index="0">%fos_http_cache.proxy_client.varnish.base_url%</argument>
23-
</service>
24-
2519
</services>
2620

2721
</container>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" ?>
2+
3+
<container xmlns="http://symfony.com/schema/dic/services"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
6+
7+
<services>
8+
<service id="fos_http_cache.test.client.varnish"
9+
parent="fos_http_cache.test.client.abstract">
10+
<argument index="0">%fos_http_cache.proxy_client.varnish.base_url%</argument>
11+
</service>
12+
</services>
13+
14+
</container>

Tests/Unit/DependencyInjection/Compiler/HashGeneratorPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function testConfigNoContext()
4343
$config = $this->getBaseConfig();
4444
$this->extension->load(array($config), $container);
4545
$this->userContextListenerPass->process($container);
46-
$this->assertCount(14, $container->getDefinitions());
46+
$this->assertCount(13, $container->getDefinitions());
4747
}
4848

4949
/**

0 commit comments

Comments
 (0)