public function CollectionTest::testPartition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CollectionTest.php \Doctrine\Tests\Common\Collections\CollectionTest::testPartition()
File
- vendor/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ CollectionTest.php, line 143
Class
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testPartition() {
$this->collection[] = true;
$this->collection[] = false;
$partition = $this->collection
->partition(function ($k, $e) {
return $e == true;
});
$this
->assertEquals($partition[0][0], true);
$this
->assertEquals($partition[1][0], false);
}