File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff 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 ()));
You can’t perform that action at this time.
0 commit comments