endsWith() public static method

public static endsWith ( $string, $end )
Beispiel #1
0
 public function testEndsWith()
 {
     self::assertTrue(StringType::endsWith('foo', 'oo'));
     self::assertTrue(StringType::endsWith('foo', 'foo'));
     self::assertFalse(StringType::endsWith('foo', 'f'));
     self::assertFalse(StringType::endsWith('f', 'foo'));
 }