You are here

public static function PHPUnit_Framework_Assert::containsOnly in Zircon Profile 8

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

Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.

@since Method available since Release 3.1.4

Parameters

string $type:

Return value

PHPUnit_Framework_Constraint_TraversableContainsOnly

1 call to PHPUnit_Framework_Assert::containsOnly()
Framework_AssertTest::testAssertThatContainsOnly in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::containsOnly

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function containsOnly($type) {
  return new PHPUnit_Framework_Constraint_TraversableContainsOnly($type);
}