public function testThreadedPop() { $threaded = new Threaded(); $threaded[] = "something"; $threaded[] = "else"; $this->assertEquals("else", $threaded->pop()); $this->assertEquals(1, count($threaded)); }