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

Asserts that a string ends with a given suffix.
public static assertStringEndsWith ( string $suffix, string $string, string $message = '' )
$suffix string
$string string
$message string
Пример #1
0
/**
 * Asserts that a string ends with a given prefix.
 *
 * @param  string $suffix
 * @param  string $string
 * @param  string $message
 * @since  Method available since Release 3.4.0
 */
function assertStringEndsWith($suffix, $string, $message = '')
{
    return PHPUnit_Framework_Assert::assertStringEndsWith($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 endsWith($suffix)
 {
     a::assertStringEndsWith($suffix, $this->actual, $this->description);
 }
Пример #4
0
 public function endsWith($suffix)
 {
     Assert::assertStringEndsWith($suffix, $this->actual, $this->description);
     return $this;
 }
 /**
  * @Then the current URL should end with :suffix
  */
 public function theCurrentUrlShouldEndWith($suffix)
 {
     Assert::assertStringEndsWith($suffix, $this->getSession()->getCurrentUrl());
 }