CHAPTER 7 – Graceful Handling – PEAR::popExpect()
array popExpect() This method compliments expectError(), and removes the topmost element in the expect stack. As with the other error-handling methods, it applies to object or global defaults depending on whether it is called statically or in an object context. The return value is an array with the expected error codes/messages that were popped off the expect stack.