public function endsWith() { $str = new String('www.müller.com'); $this->assertTrue($str->endsWith('.com')); $this->assertTrue($str->endsWith('üller.com')); $this->assertFalse($str->endsWith('.co')); $this->assertFalse($str->endsWith('müller')); }