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); }
public function iBeginsWith($prefix) { return s::iBeginsWith($this->value, self::unwrap($prefix)); }