assertStringEndsWith() public static method

Asserts that a string ends with a given suffix.
public static assertStringEndsWith ( string $suffix, string $string, string $message = '' )
$suffix string
$string string
$message string
Ejemplo n.º 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);
}
Ejemplo n.º 2
0
 public function toEndWith($suffix)
 {
     if ($this->negate) {
         a::assertStringEndsNotWith($suffix, $this->actual);
     } else {
         a::assertStringEndsWith($suffix, $this->actual);
     }
 }
Ejemplo n.º 3
0
 public function endsWith($suffix)
 {
     a::assertStringEndsWith($suffix, $this->actual, $this->description);
 }
Ejemplo n.º 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());
 }