Skip to content

Commit

Permalink
Split test onto two ones
Browse files Browse the repository at this point in the history
  • Loading branch information
xepozz committed Feb 23, 2024
1 parent eeb4fd2 commit 8756a9d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/Unit/Reference/TagReferenceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,16 @@ public function testExtractTag(): void
$this->assertEquals('test', TagReference::extractTagFromAlias('tag@test'));
}

public function testExtractWrongTag(): void
public function testExtractWrongTagDelimiter(): void
{
$this->expectException(InvalidArgumentException::class);
TagReference::extractTagFromAlias('test');
TagReference::extractTagFromAlias('tag#test');
}

public function testExtractWrongTagFormat(): void
{
$this->expectException(InvalidArgumentException::class);
TagReference::extractTagFromAlias('tag#test');
TagReference::extractTagFromAlias('test');
}

public function testReference(): void
Expand Down

0 comments on commit 8756a9d

Please sign in to comment.