Skip to content

Commit

Permalink
QA
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Apr 22, 2024
1 parent 8e0175b commit 54a46d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Languages/Base/Injections/CustomClassInjectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ class CustomClassInjectionTest extends TestCase
{
public function test_custom_class_injection()
{
$content = <<<TXT
$content = <<<'TXT'
{:hl-property:read:}({:hl-type:int:} $bytes): {:hl-type:string:}
TXT;

$expected = <<<TXT
read(int ): string
$expected = <<<'TXT'
read(int $bytes): string
TXT;

$parsed = (new CustomClassInjection())->parse($content, new Highlighter());
Expand All @@ -30,8 +30,8 @@ public function test_custom_class_injection()
$this->assertSame(5, $parsed->tokens[1]->start);
$this->assertSame(8, $parsed->tokens[1]->end);
$this->assertSame('hl-type', $parsed->tokens[1]->type->getValue());
$this->assertSame(12, $parsed->tokens[2]->start);
$this->assertSame(18, $parsed->tokens[2]->end);
$this->assertSame(18, $parsed->tokens[2]->start);
$this->assertSame(24, $parsed->tokens[2]->end);
$this->assertSame('hl-type', $parsed->tokens[2]->type->getValue());
}
}

0 comments on commit 54a46d5

Please sign in to comment.