/** @test */ public function should_push_item_onto_the_end() { $this->collection->push("Santa's Little Helper"); $this->assertEquals(6, $this->collection->count()); $this->assertEquals("Santa's Little Helper", $this->collection->get(5)); }
/** * Add a tag * * @param string $tag * * @return void */ public function tags($tag) { $this->tags->push($tag); }