public function testFunctionIsWrapped() { $fn = error_to_exception('substr'); $this->assertSame('f', $fn('foo', 0, 1)); }