Beispiel #1
0
 function testOtag()
 {
     $sc = new StringScanner("{{foo}}{{bla}}");
     $res = $sc->scan("{{");
     $this->assertEqual($res, "{{");
     $this->assertEqual($sc->rest(), "foo}}{{bla}}");
     $res = $sc->scan("[#^\\/=!<>^{]");
     $this->assertEqual($res, null);
     $this->assertEqual($sc->rest(), "foo}}{{bla}}");
 }