Esempio n. 1
0
 public function testStartsWith()
 {
     $this->assertTrue(FajrUtils::startsWith('foobar', 'foo'), 'foobar starts with foo');
     $this->assertTrue(FajrUtils::startsWith('foobar', ''), 'foobar starts with empty string');
     $this->assertTrue(FajrUtils::startsWith('', ''), 'empty string starts with empty string');
     $this->assertFalse(FajrUtils::startsWith('foobar', 'baz'), 'foobar does not start with baz');
     $this->assertFalse(FajrUtils::startsWith('foobar', 'bar'), 'foobar does not start with bar');
     $this->assertFalse(FajrUtils::startsWith('foobar', 'foobars'), 'foobar does not start with foobars');
 }