Esempio n. 1
0
 function testScanUntilExclusive()
 {
     $sc = new StringScanner("foobar blorg bla");
     $res = $sc->scanUntilExclusive("hihi");
     $this->assertEqual($res, null);
     $res = $sc->scanUntilExclusive("bar");
     $this->assertEqual($res, "foo");
     $this->assertEqual($sc->rest(), "bar blorg bla");
 }