public function testCanNotPeekAnEmptyQueue() { $queue = new TQueue(); try { $item = $queue->peek(); } catch (TInvalidOperationException $e) { return; } self::fail('An expected TInvalidOperationException was not raised'); }