Skip to content

Commit 438536f

Browse files
committed
Add tests for non breaking spaces support.
1 parent 7fade15 commit 438536f

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

tests/Output.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,9 @@ public function test_should_convert_snake_case_to_lowercased_words()
4040
{
4141
$this->assertTrue(true);
4242
}
43+
44+
public function test should convert non breaking spaces to lowercased words()
45+
{
46+
$this->assertTrue(true);
47+
}
4348
}

tests/PrinterTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ public function testTestNameCanBeSnakeCased()
5353
$this->assertStringContainsString('✓ should convert snake case to lowercased words', $lines[10]);
5454
}
5555

56+
public function testTestNameCanBeNonBreakingSpaced()
57+
{
58+
$lines = $this->getOutput();
59+
60+
$this->assertStringContainsString('✓ should convert non breaking spaces to lowercased words', $lines[11]);
61+
}
62+
5663
private function getOutput(): array
5764
{
5865
$command = [

0 commit comments

Comments
 (0)