Skip to content

Commit

Permalink
Restructure tests to match PSR-4 configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Mar 3, 2024
1 parent 53fdc67 commit ff8f805
Show file tree
Hide file tree
Showing 62 changed files with 3 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Helmich\TypoScriptLint\Linter\Sniff\OperatorWhitespaceSniff;
use Helmich\TypoScriptParser\Tokenizer\Token;
use Helmich\TypoScriptParser\Tokenizer\TokenInterface;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;

use function PHPUnit\Framework\assertThat;
Expand All @@ -22,7 +23,7 @@ public function setUp(): void
$this->sniff = new OperatorWhitespaceSniff([]);
}

public function getValidTokenSequences(): \Generator
public static function getValidTokenSequences(): \Generator
{
yield [
[
Expand All @@ -37,10 +38,7 @@ public function getValidTokenSequences(): \Generator
];
}

/**
*
* @dataProvider getValidTokenSequences
*/
#[DataProvider('getValidTokenSequences')]
public function testTokenSequenceGeneratesExpectedWarnings(array $tokens, array $warnings): void
{
$file = new File("sample.ts");
Expand Down
File renamed without changes.

0 comments on commit ff8f805

Please sign in to comment.