/** * Test pushing element onto collection * * @return void */ public function testPush() { $this->collection->push(4); $this->assertCount(4, $this->collection); $this->assertTrue($this->collection->contains(4)); $this->assertEquals(4, $this->collection->get(3)); }