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\Expression;
17 class ExpressionTest extends TestCase
19 public function testSerialization()
21 $expression = new Expression('kernel.boot()');
23 $serializedExpression = serialize($expression);
24 $unserializedExpression = unserialize($serializedExpression);
26 $this->assertEquals($expression, $unserializedExpression);