trait Tlf\Lexer\Test\Directives\UseTrait

Constants

Properties

  • `protected $_use_trait_tests = [

      'UseTrait.Docblock'=>[
          'start''php_code'],
          'input'"/** docs */ use AbcDef_09;",
          'expect'=>[
              'traits'=>[
                  0=>[
                      'type''use_trait',
                      'docblock'=>[
                          'type''docblock',
                          'description''docs',
                      ],
                      'name''AbcDef_09',
                      'declaration''use AbcDef_09;',
                  ]
              ],
          ],
      ],
    
      'UseTrait.WithNamespace.IntermediateDocblocks'=>[
          'is_bad_test''The declaration SHOULD have a space after `use`, but it doesn\'t. I don\'t plan to fix this. The test is passing because this bug is acceptable. ',
          ''=>[''],
          ''=>"use/*k*/Abc\Def\_09;",
          ''=>[
              ''=>[
                  0=>[
                      ''=>'',
                      ''=>'',
                      ''=>'useAbc\Def\_09;` 
    

Methods