/** * Test the `isEmpty` method returns false. */ public function testIsEmptyReturnFalse() { $list = new SplDoublyLinkedList(); $list->push($this->getMock('\\com\\mohiva\\common\\parser\\Token')); $stream = new TokenStream($list); $this->assertFalse($stream->isEmpty()); }