public function testCount() { $this->assertSame(0, $this->collection->count()); $this->collection->add($this->target1); $this->assertSame(1, $this->collection->count()); $this->collection->add($this->target2); $this->assertSame(2, $this->collection->count()); }