Use phpspec ~2.1 to fix SplFileObject mock bug