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