예제 #1
0
 public function testIBeginsWith()
 {
     $this->eq(s::iBeginsWith('aBcdef', 'AbC'), true);
     $this->eq(s::iBeginsWith('abcdef', 'xyz'), false);
     $this->eq(s::iBeginsWith('abcdef', 'cde'), false);
     $this->eq(s::iBeginsWith('', 'abc'), false);
     $this->eq(s::iBeginsWith('AbCdef', ''), true);
     $this->eq(s::iBeginsWith('abc', 'abcdef'), false);
 }
예제 #2
0
 public function iBeginsWith($prefix)
 {
     return s::iBeginsWith($this->value, self::unwrap($prefix));
 }