--TEST-- Invalid SplFileObject::getCurrentLine() return type --FILE-- current()); } catch (TypeError $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- MySplFileObject::getCurrentLine(): Return value must be of type string, array returned