You are here

public static function PHPUnit_Framework_Assert::stringStartsWith in Zircon Profile 8

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

Returns a PHPUnit_Framework_Constraint_StringStartsWith matcher object.

@since Method available since Release 3.4.0

Parameters

mixed $prefix:

Return value

PHPUnit_Framework_Constraint_StringStartsWith

4 calls to PHPUnit_Framework_Assert::stringStartsWith()
Framework_ConstraintTest::testConstraintStringStartsNotWith in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringStartsWith @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::stringStartsWith @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintStringStartsNotWith2 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringStartsWith @covers PHPUnit_Framework_Assert::stringStartsWith @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintStringStartsWith in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringStartsWith @covers PHPUnit_Framework_Assert::stringStartsWith @covers PHPUnit_Framework_Constraint::count @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintStringStartsWith2 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringStartsWith @covers PHPUnit_Framework_Assert::stringStartsWith @covers PHPUnit_Framework_TestFailure::exceptionToString

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function stringStartsWith($prefix) {
  return new PHPUnit_Framework_Constraint_StringStartsWith($prefix);
}