Beispiel #1
0
 /**
  * @covers ::endsWith
  */
 public function testEndsWith()
 {
     $this->assertTrue(Strings::endsWith("But Gollum, and the evil one", "one"));
     $this->assertFalse(Strings::endsWith("But Gollum, and the evil one", "One"));
     $this->assertTrue(Strings::endsWith("But Gollum, and the evil one", "One", false));
     $this->assertFalse(Strings::endsWith("But Gollum, and the evil one", "evil"));
     Strings::setUseMultiByte(true);
     $this->assertTrue(Strings::endsWith("But Gollum, and the evil one", "one"));
     $this->assertFalse(Strings::endsWith("But Gollum, and the evil one", "One"));
     $this->assertTrue(Strings::endsWith("But Gollum, and the evil one", "One", false));
     $this->assertFalse(Strings::endsWith("But Gollum, and the evil one", "evil"));
 }