/** * Test popping element from collection * * @return void */ public function testPop() { $element = $this->collection->pop(); $this->assertCount(2, $this->collection); $this->assertFalse($this->collection->contains(3)); $this->assertEquals(3, $element); }