ScopeTest.php 558 B

12345678910111213141516171819202122232425
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Bridge\Twig\Tests\NodeVisitor;
  11. use PHPUnit\Framework\TestCase;
  12. use Symfony\Bridge\Twig\NodeVisitor\Scope;
  13. class ScopeTest extends TestCase
  14. {
  15. public function testScopeInitiation()
  16. {
  17. $scope = new Scope();
  18. $scope->enter();
  19. $this->assertNull($scope->get('test'));
  20. }
  21. }