예제 #1
0
 public function testItEndsWithNotStrictThrowsException()
 {
     $array = new \SplFixedArray(2);
     $array[0] = 'some-value';
     $array[1] = 1337;
     $this->setExpectedException(Exception::class);
     Assert::endsWith($array, '1338');
 }
예제 #2
0
 public function testEndsWithWillThrowException2()
 {
     $this->setExpectedException(Exception::class);
     $value = 'AAAAAAAaaaA1';
     $contains = 2;
     $identical = true;
     Assert::endsWith($value, $contains, $identical);
 }