Example #1
0
 /**
  * Test the `setIteratorMode` and `getIteratorMode` accessors.
  */
 public function testIteratorModeAccessors()
 {
     $mode = SplDoublyLinkedList::IT_MODE_FIFO | SplDoublyLinkedList::IT_MODE_DELETE;
     $stream = new TokenStream();
     $stream->setIteratorMode($mode);
     $this->assertSame($mode, $stream->getIteratorMode());
 }