/** * 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); }
public function toEndWith($suffix) { if ($this->negate) { a::assertStringEndsNotWith($suffix, $this->actual); } else { a::assertStringEndsWith($suffix, $this->actual); } }
public function endsWith($suffix) { a::assertStringEndsWith($suffix, $this->actual, $this->description); }
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()); }