Exemplo n.º 1
0
 public function testItStartsWithNotStrictThrowsException()
 {
     $array = new \SplFixedArray(2);
     $array[0] = 'some-value';
     $array[1] = 1337;
     $this->setExpectedException(Exception::class);
     Assert::startsWith($array, '1338');
 }
Exemplo n.º 2
0
 public function testStartsWithWillThrowExceptionVariation2()
 {
     $this->setExpectedException(Exception::class);
     $value = '123AAAAAAA';
     $contains = '134';
     $identical = true;
     Assert::startsWith($value, $contains, $identical);
 }