You are here

public function CollectionTest::testClear in Plug 7

File

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

Class

CollectionTest

Namespace

Doctrine\Tests\Common\Collections

Code

public function testClear() {
  $this->collection[] = 'one';
  $this->collection[] = 'two';
  $this->collection
    ->clear();
  $this
    ->assertEquals($this->collection
    ->isEmpty(), true);
}