You are here

public static function PHPUnit_Framework_Assert::matches in Zircon Profile 8

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

Returns a PHPUnit_Framework_Constraint_StringMatches matcher object.

@since Method available since Release 3.5.0

Parameters

string $string:

Return value

PHPUnit_Framework_Constraint_StringMatches

6 calls to PHPUnit_Framework_Assert::matches()
Framework_ConstraintTest::testConstraintStringMatches in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringMatches @covers PHPUnit_Framework_Assert::matches @covers PHPUnit_Framework_Constraint::count
Framework_ConstraintTest::testConstraintStringMatches2 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringMatches @covers PHPUnit_Framework_Assert::matches @covers PHPUnit_Framework_Constraint::count
Framework_ConstraintTest::testConstraintStringMatches3 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringMatches @covers PHPUnit_Framework_Assert::matches @covers PHPUnit_Framework_Constraint::count
Framework_ConstraintTest::testConstraintStringMatches4 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringMatches @covers PHPUnit_Framework_Assert::matches @covers PHPUnit_Framework_Constraint::count
Framework_ConstraintTest::testConstraintStringMatches5 in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_StringMatches @covers PHPUnit_Framework_Assert::matches @covers PHPUnit_Framework_Constraint::count

... See full list

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function matches($string) {
  return new PHPUnit_Framework_Constraint_StringMatches($string);
}