Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Config / ContainerParametersResourceTest.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\DependencyInjection\Tests\Config;
13
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\DependencyInjection\Config\ContainerParametersResource;
16
17 class ContainerParametersResourceTest extends TestCase
18 {
19     /** @var ContainerParametersResource */
20     private $resource;
21
22     protected function setUp()
23     {
24         $this->resource = new ContainerParametersResource(array('locales' => array('fr', 'en'), 'default_locale' => 'fr'));
25     }
26
27     public function testToString()
28     {
29         $this->assertSame('container_parameters_9893d3133814ab03cac3490f36dece77', (string) $this->resource);
30     }
31
32     public function testSerializeUnserialize()
33     {
34         $unserialized = unserialize(serialize($this->resource));
35
36         $this->assertEquals($this->resource, $unserialized);
37     }
38
39     public function testGetParameters()
40     {
41         $this->assertSame(array('locales' => array('fr', 'en'), 'default_locale' => 'fr'), $this->resource->getParameters());
42     }
43 }