trait Tlf\Lexer\Test\Directives\PhpOpenTags

Constants

Properties

  • `protected $_php_open_tags_tests = [

      'Open.Class'=>[
          'ast.type''file',
          'start''php_open'],
          'input''<html><div><?php class Abc {} ',
          'expect'=>[
              'namespace''',
              'class'=>[
                  0=>[
                      'type''class',
                      'name''Abc',
                      'declaration''class Abc',
                  ]
              ],
          ],
      ],
      'Open.Close.Open'=>[
          'ast.type''file',
          'start''php_open'],
          'input''<html><div><?php ?></div><?php namespace Abc; ',
          'expect'=>[
              'namespace'=>[
                  'type''namespace',
                  'name''Abc',
                  'declaration''namespace Abc;',
              ],
          ],
      ],
      'Open.Simple'=>[
          'ast.type''file',
          'start''php_open'],
          'input''<html><div><?php namespace Abc;',
          'expect'=>[
              'namespace'=>[
                  'type''namespace',
                  'name''Abc',
                  'declaration''namespace Abc;',
              ],
          ],
      ],
    

    ];`

Methods