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\ExpressionLanguage\Tests;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\ExpressionLanguage\Node\ConstantNode;
16 use Symfony\Component\ExpressionLanguage\ParsedExpression;
18 class ParsedExpressionTest extends TestCase
20 public function testSerialization()
22 $expression = new ParsedExpression('25', new ConstantNode('25'));
24 $serializedExpression = serialize($expression);
25 $unserializedExpression = unserialize($serializedExpression);
27 $this->assertEquals($expression, $unserializedExpression);