Beispiel #1
0
 public function isAction($url)
 {
     return Str::startsWith(Uri::createFromString($url)->getFragment(), $this->config['needle'] . ':', true);
 }
Beispiel #2
0
 public function testCanAssertAStringStartsWith()
 {
     $this->assertTrue(Str::startsWith('foobar', 'foo'));
     $this->assertFalse(Str::startsWith('barfoo', 'foo'));
 }