public function testAfter()
 {
     $this->eq(s::after('abc/def', '/'), 'def');
     $this->eq(s::after('abc/def/ghi', '/'), 'ghi');
     $this->eq(s::after('abc', '/'), 'abc');
     $this->eq(s::after('abcdef', ''), '');
     $this->eq(s::after('abcdef', 'abcdef'), '');
     $this->eq(s::after('abc', 'abcdef'), 'abc');
     $this->eq(s::after('', ''), '');
     $this->eq(s::after('', 'abc'), '');
 }
Exemple #2
0
 public function after($substr)
 {
     return new self(s::after($this->value, self::unwrap($substr)));
 }