You are here

public function CollectionTest::testCount in Plug 7

File

lib/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CollectionTest.php, line 127

Class

CollectionTest

Namespace

Doctrine\Tests\Common\Collections

Code

public function testCount() {
  $this->collection[] = 'one';
  $this->collection[] = 'two';
  $this
    ->assertEquals($this->collection
    ->count(), 2);
  $this
    ->assertEquals(count($this->collection), 2);
}