Skip to content

Commit 66d6822

Browse files
author
Martin Brecht-Precht
committed
Added a new test case.
1 parent b87ec97 commit 66d6822

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: test/StringBuilderTest.php

+7
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ public function testBuilderInsertFail3()
9292
$builder->insert(0, 'a');
9393
}
9494

95+
public function testBuilderInsertFail4()
96+
{
97+
$this->setExpectedException(get_class(new \InvalidArgumentException()));
98+
$builder = new StringBuilder();
99+
$builder->insert(-1, 'a');
100+
}
101+
95102
public function testBuilderReplaceFail1()
96103
{
97104
$this->setExpectedException(get_class(new \InvalidArgumentException()));

0 commit comments

Comments
 (0)