/** * @test */ public function countが要素数を返す() { $collection = new Collection([1, 2, 4]); $this->assertSame(3, $collection->count()); }
/** * {@inheritdoc} */ public function count() { return $this->collection->count(); }