4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\DependencyInjection\Tests\Config;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\DependencyInjection\Config\ContainerParametersResource;
17 class ContainerParametersResourceTest extends TestCase
19 /** @var ContainerParametersResource */
22 protected function setUp()
24 $this->resource = new ContainerParametersResource(array('locales' => array('fr', 'en'), 'default_locale' => 'fr'));
27 public function testToString()
29 $this->assertSame('container_parameters_9893d3133814ab03cac3490f36dece77', (string) $this->resource);
32 public function testSerializeUnserialize()
34 $unserialized = unserialize(serialize($this->resource));
36 $this->assertEquals($this->resource, $unserialized);
39 public function testGetParameters()
41 $this->assertSame(array('locales' => array('fr', 'en'), 'default_locale' => 'fr'), $this->resource->getParameters());