Skip to content

Commit

Permalink
UPGRADING
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Apr 25, 2024
1 parent bbaf7ce commit 5273818
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.2.0

- Add `Highlighter::getSupportedLanguageNames()`

## 2.1.0

- Add support for `diff` language
Expand Down
7 changes: 7 additions & 0 deletions tests/HighlighterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ public function test_inline_theme(): void
$this->assertSame('<span style="color: #D32F2F;">echo</span> 1', $output);
}

public function test_get_supported_languages(): void
{
$highlighter = new Highlighter();

$this->assertTrue(in_array('php', $highlighter->getSupportedLanguageNames()));
}

public static function data(): array
{
return [
Expand Down

0 comments on commit 5273818

Please sign in to comment.