@@ -10,7 +10,7 @@ abstract class PHPCtagsTestCase {
1010
1111 public function __construct ()
1212 {
13- $ this ->mFormat = "<name> \t<file> \t/^<line content>$/; \"\t<kind> \tline:<line number> \t<scope> \t<access> " ;
13+ $ this ->mFormat = "<name> \t<file> \t/^<line content>$/; \"\t<short kind> \tline:<line number> \t<scope> \t<access> " ;
1414 $ this ->mOptions = array (
1515 'excmd ' => 'pattern ' ,
1616 'fields ' => array ('n ' ,'k ' ,'s ' ,'a ' ),
@@ -46,6 +46,7 @@ public function getExampleContent()
4646
4747 public function getExpectResult ()
4848 {
49+ $ kinds = PHPCtags::getMKinds ();
4950 $ testcase_expect = '' ;
5051 $ testcase_example_define = $ this ->getExampleDefine ();
5152 $ testcase_example_content = $ this ->getExampleContent ();
@@ -55,7 +56,8 @@ public function getExpectResult()
5556 $ line = preg_replace ('/<name>/ ' , $ define ['name ' ], $ line );
5657 $ line = preg_replace ('/<file>/ ' , $ this ->getExample (), $ line );
5758 $ line = preg_replace ('/<line content>/ ' , rtrim ($ testcase_example_content [$ define ['line ' ] - 1 ], "\n" ), $ line );
58- $ line = preg_replace ('/<kind>/ ' , $ define ['kind ' ], $ line );
59+ $ line = preg_replace ('/<short kind>/ ' , $ define ['kind ' ], $ line );
60+ $ line = preg_replace ('/<full kind>/ ' , $ kinds [$ define ['kind ' ]], $ line );
5961 $ line = preg_replace ('/<line number>/ ' , $ define ['line ' ], $ line );
6062 if (!empty ($ define ['scope ' ])) {
6163 $ line = preg_replace ('/<scope>/ ' , $ define ['scope ' ], $ line );
0 commit comments