Skip to content

Commit ef202c8

Browse files
author
Martin Brecht-Precht
committed
Added one last test case.
1 parent 82853d0 commit ef202c8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/SimpleStringBuilderTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,4 +239,13 @@ public function testBuilderBuildSubstringFail2()
239239
->buildSubstring(0, array());
240240
}
241241

242+
public function testBuilderBuildIndexOfFail()
243+
{
244+
$this->setExpectedException(get_class(new \InvalidArgumentException()));
245+
$builder = new SimpleStringBuilder();
246+
$builder
247+
->append('ab')
248+
->indexOf('');
249+
}
250+
242251
}

0 commit comments

Comments
 (0)