anchor.diff:        expect(projectUnderTest.macos.podfile.readAsStringSync(), 'macOS podfile template');
       });
   
  -    testUsingContext('does not recreate Podfile when already present', () async {
  +    testWithoutContext('does not recreate Podfile when already present', () async {
         projectUnderTest.ios.podfile..createSync()..writeAsStringSync('Existing Podfile');
   
         final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.directory('project'));
         await cocoaPodsUnderTest.setupPodfile(project.ios);
   
         expect(projectUnderTest.ios.podfile.readAsStringSync(), 'Existing Podfile');
  -    }, overrides: <Type, Generator>{
  -      FileSystem: () => fileSystem,
  -      ProcessManager: () => FakeProcessManager.any(),
  -    });
  -
  -    testUsingContext('does not create Podfile when we cannot interpret Xcode projects', () async {
  -      when(mockXcodeProjectInterpreter.isInstalled).thenReturn(false);
  -
  -      final FlutterProject project = FlutterProject.fromDirectoryTest(globals.fs.directory('project'));
  +    });
  +
  +    testWithoutContext('does not create Podfile when we cannot interpret Xcode projects', () async {
  +      final CocoaPods cocoaPodsUnderTest = CocoaPods(
  +        fileSystem: fileSystem,
  +        processManager: fakeProcessManager,
  +        logger: logger,
  +        platform: FakePlatform(operatingSystem: 'macos'),
  +        xcodeProjectInterpreter: FakeXcodeProjectInterpreter(isInstalled: false),
  +        usage: usage,
  +      );
  +
  +      final FlutterProject project = FlutterProject.fromDirectoryTest(fileSystem.directory('project'));
         await cocoaPodsUnderTest.setupPodfile(project.ios);
   
         expect(projectUnderTest.ios.podfile.existsSync(), false);
  -    }, overrides: <Type, Generator>{
  -      FileSystem: () => fileSystem,
  -      ProcessManager: () => FakeProcessManager.any(),
  -      XcodeProjectInterpreter: () => mockXcodeProjectInterpreter,
  -    });
  -
  -    testUsingContext('includes Pod config in xcconfig files, if not present', () async {
  +    });
  +
  +    testWithoutContext('includes Pod config in xcconfig files, if not present', () async {
         projectUnderTest.ios.podfile..createSync()..writeAsStringSync('Existing Podfile');
         projectUnderTest.ios.xcodeConfigFor('Debug')
           ..createSync(recursive: true)
  
positive.code:         ..createSync(recursive: true)
          ..writeAsStringSync('Existing release config');
  
        final FlutterProject project = FlutterProject.fromDirectoryTest(globals.fs.directory('project'));
        await cocoaPodsUnderTest.setupPodfile(project.ios);
  
        final String debugContents = projectUnderTest.ios.xcodeConfigFor('Debug').readAsStringSync();
        expect(debugContents, contains(
  
negative.code: import 'package:flutter_tools/src/base/platform.dart';
  import 'package:flutter_tools/src/build_info.dart';
  import 'package:flutter_tools/src/cache.dart';
  import 'package:flutter_tools/src/ios/xcodeproj.dart';
  import 'package:flutter_tools/src/macos/cocoapods.dart';
  import 'package:flutter_tools/src/plugins.dart';
  import 'package:flutter_tools/src/project.dart';
  import 'package:flutter_tools/src/reporting/reporting.dart';
  import 'package:test/fake.dart';
  
  import '../../src/common.dart';
  import '../../src/context.dart';
  