Yaffs site version 1.1
[yaffs-website] / vendor / symfony / expression-language / Tests / ExpressionTest.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\ExpressionLanguage\Tests;
13
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\ExpressionLanguage\Expression;
16
17 class ExpressionTest extends TestCase
18 {
19     public function testSerialization()
20     {
21         $expression = new Expression('kernel.boot()');
22
23         $serializedExpression = serialize($expression);
24         $unserializedExpression = unserialize($serializedExpression);
25
26         $this->assertEquals($expression, $unserializedExpression);
27     }
28 }