protected function applyFix(\SplFileInfo $file, Tokens $tokens)
    {
        $phpUnitTestCaseIndicator = new PhpUnitTestCaseIndicator();
        foreach ($phpUnitTestCaseIndicator->findPhpUnitClasses($tokens) as $indexes) {
            $startIndex = $indexes[0];
            $prevDocCommentIndex = $tokens->getPrevTokenOfKind($startIndex, [[T_DOC_COMMENT]]);
            if (null !== $prevDocCommentIndex) {
                $startIndex = $prevDocCommentIndex;
            }
            $this->fixPhpUnitClass($tokens, $startIndex, $indexes[1]);
        }
    }
protected function applyFix(\SplFileInfo $file, Tokens $tokens)
    {
        $phpUnitTestCaseIndicator = new PhpUnitTestCaseIndicator();
        foreach ($phpUnitTestCaseIndicator->findPhpUnitClasses($tokens) as $indexes) {
            $startIndex = $indexes[0];
            $prevDocCommentIndex = $tokens->getPrevTokenOfKind($startIndex, [[T_DOC_COMMENT]]);
            if (null !== $prevDocCommentIndex) {
                $startIndex = $prevDocCommentIndex;
            }
            $this->fixPhpUnitClass($tokens, $startIndex, $indexes[1]);
        }
    }
protected function applyFix ( \ SplFileInfo $ file , Tokens $ tokens ) { $ phpUnitTestCaseIndicator = new PhpUnitTestCaseIndicator ( ) ; foreach ( $ phpUnitTestCaseIndicator -> findPhpUnitClasses ( $ tokens ) as $ indexes ) { $ startIndex = $ indexes [ 0 ] ; $ prevDocCommentIndex = $ tokens -> getPrevTokenOfKind ( $ startIndex , [ [ T_DOC_COMMENT ] ] ) ; if ( null !== $ prevDocCommentIndex ) { $ startIndex = $ prevDocCommentIndex ; } $ this -> fixPhpUnitClass ( $ tokens , $ startIndex , $ indexes [ 1 ] ) ; } }
{@inheritdoc}
{