assertStringEndsNotWith() 공개 정적인 메소드

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
예제 #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);
}
예제 #2
0
 public function toEndWith($suffix)
 {
     if ($this->negate) {
         a::assertStringEndsNotWith($suffix, $this->actual);
     } else {
         a::assertStringEndsWith($suffix, $this->actual);
     }
 }
예제 #3
0
 public function notEndsWith($suffix)
 {
     a::assertStringEndsNotWith($suffix, $this->actual, $this->description);
 }
예제 #4
0
 public function doesNotEndWith($suffix)
 {
     Assert::assertStringEndsNotWith($suffix, $this->actual, $this->description);
     return $this;
 }
예제 #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;
 }