You are here

public function ArrayCollectionTest::testGetKeys in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/ArrayCollectionTest.php \Doctrine\Tests\Common\Collections\ArrayCollectionTest::testGetKeys()

@dataProvider provideDifferentElements

File

vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/ArrayCollectionTest.php, line 114

Class

ArrayCollectionTest
Tests for { @covers \Doctrine\Common\Collections\ArrayCollection

Namespace

Doctrine\Tests\Common\Collections

Code

public function testGetKeys($elements) {
  $collection = new ArrayCollection($elements);
  $this
    ->assertSame(array_keys($elements), $collection
    ->getKeys());
}