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()
37
37
$ this ->assertEquals (9 , $ builder ->indexOf ('e ' , 4 ));
38
38
$ this ->assertNull ($ builder ->indexOf ('e ' , 10 ));
39
39
$ this ->assertEquals (9 , $ builder ->lastIndexOf ('e ' ));
40
- $ this ->assertNull ($ builder ->lastIndexOf ('e ' ,10 ));
40
+ $ this ->assertNull ($ builder ->lastIndexOf ('e ' , 10 ));
41
41
$ this ->assertTrue ($ builder ->contains ('21b ' ));
42
42
$ this ->assertEquals ('b ' , $ builder ->firstChar ());
43
43
$ this ->assertEquals ('ö ' , $ builder ->lastChar ());
@@ -53,6 +53,12 @@ public function testBuilder()
53
53
$ this ->assertEquals ('02356 ' , $ builder ->build ());
54
54
}
55
55
56
+ public function testBuilderNull ()
57
+ {
58
+ $ builder = new StringBuilder ();
59
+ $ this ->assertNull ($ builder ->build ());
60
+ }
61
+
56
62
public function testBuilderConstructFail ()
57
63
{
58
64
$ this ->setExpectedException (get_class (new \InvalidArgumentException ()));
You can’t perform that action at this time.
0 commit comments