getRules(); $rules['php_unit_test_case_static_method_calls'] = ['call_type' => 'self', 'methods' => ['createStub' => 'this']]; $config->setRules($rules); // @TODO 4.0 no need to call this manually $config->setParallelConfig(ParallelConfigFactory::detect()); $config->getFinder()->in('Classes')->in('Configuration')->in('Tests'); return $config;