You are here

public static function PHPUnit_Framework_Assert::stringEndsWith in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::stringEndsWith()

Returns a PHPUnit_Framework_Constraint_StringEndsWith matcher object.

@since Method available since Release 3.4.0

Parameters

mixed $suffix:

Return value

PHPUnit_Framework_Constraint_StringEndsWith

4 calls to PHPUnit_Framework_Assert::stringEndsWith()
Framework_ConstraintTest::testConstraintStringEndsNotWith in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringEndsWith @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::stringEndsWith @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintStringEndsNotWith2 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringEndsWith @covers PHPUnit_Framework_Assert::stringEndsWith @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintStringEndsWith in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringEndsWith @covers PHPUnit_Framework_Assert::stringEndsWith @covers PHPUnit_Framework_Constraint::count @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintStringEndsWith2 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringEndsWith @covers PHPUnit_Framework_Assert::stringEndsWith @covers PHPUnit_Framework_TestFailure::exceptionToString

File

vendor/phpunit/phpunit/src/Framework/Assert.php, line 2801

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function stringEndsWith($suffix) {
  return new PHPUnit_Framework_Constraint_StringEndsWith($suffix);
}