public function CollectionTest::testForAll in Plug 7
File
- lib/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ CollectionTest.php, line 135
Class
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testForAll() {
$this->collection[] = 'one';
$this->collection[] = 'two';
$this
->assertEquals($this->collection
->forAll(function ($k, $e) {
return is_string($e);
}), true);
$this
->assertEquals($this->collection
->forAll(function ($k, $e) {
return is_array($e);
}), false);
}