7
7
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
8
8
*/
9
9
10
- namespace PHP_CodeSniffer \Tests \Core \Tokenizer ;
10
+ namespace PHP_CodeSniffer \Tests \Core \Tokenizer \ Tokenizer ;
11
11
12
- use PHP_CodeSniffer \Tests \Core \AbstractMethodUnitTest ;
12
+ use PHP_CodeSniffer \Tests \Core \Tokenizer \ AbstractTokenizerTestCase ;
13
13
14
- final class UseParenthesisOwnerTest extends AbstractMethodUnitTest
14
+ final class CreateTokenMapUseParenthesesTest extends AbstractTokenizerTestCase
15
15
{
16
16
17
17
@@ -27,7 +27,7 @@ final class UseParenthesisOwnerTest extends AbstractMethodUnitTest
27
27
*/
28
28
public function testUseNotClosure ($ testMarker )
29
29
{
30
- $ tokens = self :: $ phpcsFile ->getTokens ();
30
+ $ tokens = $ this -> phpcsFile ->getTokens ();
31
31
32
32
$ use = $ this ->getTargetToken ($ testMarker , T_USE );
33
33
$ this ->assertArrayNotHasKey ('parenthesis_owner ' , $ tokens [$ use ]);
@@ -54,7 +54,7 @@ public function testUseNotClosure($testMarker)
54
54
*/
55
55
public function testUseNotClosureNextOpenClose ($ testMarker , $ expectedOwnerCode =null )
56
56
{
57
- $ tokens = self :: $ phpcsFile ->getTokens ();
57
+ $ tokens = $ this -> phpcsFile ->getTokens ();
58
58
$ opener = $ this ->getTargetToken ($ testMarker , T_OPEN_PARENTHESIS );
59
59
$ closer = $ this ->getTargetToken ($ testMarker , T_CLOSE_PARENTHESIS );
60
60
@@ -117,7 +117,7 @@ public static function dataUseNotClosure()
117
117
*/
118
118
public function testClosureUse ($ testMarker )
119
119
{
120
- $ tokens = self :: $ phpcsFile ->getTokens ();
120
+ $ tokens = $ this -> phpcsFile ->getTokens ();
121
121
$ use = $ this ->getTargetToken ($ testMarker , T_USE );
122
122
$ opener = $ this ->getTargetToken ($ testMarker , T_OPEN_PARENTHESIS );
123
123
$ closer = $ this ->getTargetToken ($ testMarker , T_CLOSE_PARENTHESIS );
@@ -173,7 +173,7 @@ public static function dataClosureUse()
173
173
*/
174
174
public function testLiveCoding ()
175
175
{
176
- $ tokens = self :: $ phpcsFile ->getTokens ();
176
+ $ tokens = $ this -> phpcsFile ->getTokens ();
177
177
$ use = $ this ->getTargetToken ('/* testLiveCoding */ ' , T_USE );
178
178
179
179
$ this ->assertArrayHasKey ('parenthesis_owner ' , $ tokens [$ use ]);
0 commit comments