assertStringStartsNotWith() public static method

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
Example #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);
}
Example #2
0
 public function toStartWith($prefix)
 {
     if ($this->negate) {
         a::assertStringStartsNotWith($prefix, $this->actual);
     } else {
         a::assertStringStartsWith($prefix, $this->actual);
     }
 }
Example #3
0
 public function notStartsWith($prefix)
 {
     a::assertStringStartsNotWith($prefix, $this->actual, $this->description);
 }
Example #4
0
 public function doesNotStartWith($prefix)
 {
     Assert::assertStringStartsNotWith($prefix, $this->actual, $this->description);
     return $this;
 }
Example #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;
 }