Example #1
0
 /**
  * startsWith Test
  *
  * @param string $haystack
  * @param string $needle
  * @param bool $expectedResult
  * @dataProvider startsWithReturnsStringDataProvider
  * @return void
  * @test
  */
 public function startsWithReturnsString($haystack, $needle, $expectedResult)
 {
     $this->assertSame($expectedResult, StringUtility::startsWith($haystack, $needle));
 }
 /**
  * Should this key skipped because it starts with _ or ends with .
  *
  * @param string $key
  * @return bool
  */
 protected function isSkippedKey($key)
 {
     return StringUtility::startsWith($key, '_') || StringUtility::endsWith($key, '.');
 }