public function endWith($value) { return (string) $value === substr($this->str, -strlen($value)); }
public function testEndWith() { $str = new StringWrapper('Welcome to Spress'); $this->assertTrue($str->endWith('press')); $this->assertFalse($str->endWith('to')); }