public static function PHPUnit_Framework_Assert::containsOnlyInstancesOf in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::containsOnlyInstancesOf()
Returns a PHPUnit_Framework_Constraint_TraversableContainsOnly matcher object.
Parameters
string $classname:
Return value
PHPUnit_Framework_Constraint_TraversableContainsOnly
1 call to PHPUnit_Framework_Assert::containsOnlyInstancesOf()
- Framework_AssertTest::testAssertThatContainsOnlyInstancesOf in vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php - @covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::containsOnlyInstancesOf
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php, line 2519
Class
- PHPUnit_Framework_Assert
- A set of assert methods.
Code
public static function containsOnlyInstancesOf($classname) {
return new PHPUnit_Framework_Constraint_TraversableContainsOnly($classname, false);
}