/** @test */ public function iterator() { $context = new Context(array('foo' => 'bar')); $iterator = $context->getIterator(); $this->assertInstanceOf('IteratorAggregate', $iterator); $iterator->offsetExists('foo'); }