assertStringEndsNotWith() public static method

Asserts that a string ends not with a given suffix.
public static assertStringEndsNotWith ( string $suffix, string $string, string $message = '' )
$suffix string
$string string
$message string
Example #1
0
/**
 * Asserts that a string ends not with a given prefix.
 *
 * @param  string $suffix
 * @param  string $string
 * @param  string $message
 * @since  Method available since Release 3.4.0
 */
function assertStringEndsNotWith($suffix, $string, $message = '')
{
    return PHPUnit_Framework_Assert::assertStringEndsNotWith($suffix, $string, $message);
}
Example #2
0
 public function toEndWith($suffix)
 {
     if ($this->negate) {
         a::assertStringEndsNotWith($suffix, $this->actual);
     } else {
         a::assertStringEndsWith($suffix, $this->actual);
     }
 }
Example #3
0
 public function notEndsWith($suffix)
 {
     a::assertStringEndsNotWith($suffix, $this->actual, $this->description);
 }
Example #4
0
 public function doesNotEndWith($suffix)
 {
     Assert::assertStringEndsNotWith($suffix, $this->actual, $this->description);
     return $this;
 }
Example #5
0
 /**
  * Expect that a string ends not with a given suffix.
  *
  * @param string $suffix
  * @param string $message
  *
  * @return Expect
  */
 public function notToEndWith($suffix, $message = '')
 {
     Assert::assertStringEndsNotWith($suffix, $this->value, $message);
     return $this;
 }