assertStringStartsNotWith() публичный статический Метод

Asserts that a string starts not with a given prefix.
public static assertStringStartsNotWith ( string $prefix, string $string, string $message = '' )
$prefix string
$string string
$message string
Пример #1
0
/**
 * Asserts that a string starts not with a given prefix.
 *
 * @param  string $prefix
 * @param  string $string
 * @param  string $message
 * @since  Method available since Release 3.4.0
 */
function assertStringStartsNotWith($prefix, $string, $message = '')
{
    return PHPUnit_Framework_Assert::assertStringStartsNotWith($prefix, $string, $message);
}
Пример #2
0
 public function toStartWith($prefix)
 {
     if ($this->negate) {
         a::assertStringStartsNotWith($prefix, $this->actual);
     } else {
         a::assertStringStartsWith($prefix, $this->actual);
     }
 }
Пример #3
0
 public function notStartsWith($prefix)
 {
     a::assertStringStartsNotWith($prefix, $this->actual, $this->description);
 }
Пример #4
0
 public function doesNotStartWith($prefix)
 {
     Assert::assertStringStartsNotWith($prefix, $this->actual, $this->description);
     return $this;
 }
Пример #5
0
 /**
  * Expect that a string starts not with a given prefix.
  *
  * @param string $prefix
  * @param string $message
  *
  * @return Expect
  */
 public function notToStartWith($prefix, $message = '')
 {
     Assert::assertStringStartsNotWith($prefix, $this->value, $message);
     return $this;
 }