Skip to content

Commit ce02ea5

Browse files
author
Martin Brecht-Precht
committed
Added a test
1 parent a908406 commit ce02ea5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/StringBuilderTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function testBuilder()
3737
$this->assertEquals(9, $builder->indexOf('e', 4));
3838
$this->assertNull($builder->indexOf('e', 10));
3939
$this->assertEquals(9, $builder->lastIndexOf('e'));
40-
$this->assertNull($builder->lastIndexOf('e',10));
40+
$this->assertNull($builder->lastIndexOf('e', 10));
4141
$this->assertTrue($builder->contains('21b'));
4242
$this->assertEquals('b', $builder->firstChar());
4343
$this->assertEquals('ö', $builder->lastChar());
@@ -53,6 +53,12 @@ public function testBuilder()
5353
$this->assertEquals('02356', $builder->build());
5454
}
5555

56+
public function testBuilderNull()
57+
{
58+
$builder = new StringBuilder();
59+
$this->assertNull($builder->build());
60+
}
61+
5662
public function testBuilderConstructFail()
5763
{
5864
$this->setExpectedException(get_class(new \InvalidArgumentException()));

0 commit comments

Comments
 (0)