@@ -79,6 +79,7 @@ class Bar {}
T_CONTINUE,
T_BREAK,
T_DECLARE,
+ T_USE,
];
foreach ($tokens as $index => $token) {
@@ -144,6 +144,20 @@ EOF;
$this->doTest($expected);
}
+ public function testLineBeforeUseStatementIsNotRemoved()
+ {
+ $expected = <<<'EOF'
+<?php
+/**
+ * This is some license header.
+ */
+
+use Foo\Bar;
+EOF;
+ $this->doTest($expected);
+ }
public function testLineWithSpacesIsRemovedWhenNextTokenIsIndented()
{
$this->doTest(