Example #1
0
 public function testStartsWith()
 {
     $this->assertTrue(Str::startsWith('jason', 'jas'));
     $this->assertTrue(Str::startsWith('jason', 'jason'));
     $this->assertTrue(Str::startsWith('jason', array('jas')));
     $this->assertFalse(Str::startsWith('jason', 'day'));
     $this->assertFalse(Str::startsWith('jason', array('day')));
     $this->assertFalse(Str::startsWith('jason', ''));
 }