I am working on Zend framework , i have set up everything but in the unit testing i get a fatal error:
c:\xampp\htdocs\zend\module\Album\test>phpunit PHP Catchable fatal error: Arugment 1 passed to Zend\ServiceManager\ServiceManager::__construct() must be of the type array, object given, called in C:\xampp\htdocs\zend\module\Album\test\Bootstrap.php on line 53 and defined in c:\xampp\htdocs\zend\vendorframework\zend-servicemanager\src\ServiceManager.php on line 144
Bootstrap.php Line 52-58:
$config = ArrayUtils::merge($baseConfig, $testConfig);
$serviceManager = new ServiceManager(new ServiceManagerConfig());
$serviceManager->setService('ApplicationConfig', $config);
$serviceManager->get('ModuleManager')->loadModules();
static::$serviceManager = $serviceManager;
static::$config = $config;
ServiceManager.php Line 144-148:
public function __construct(array $config = [])
{
$this->creationContext = $this;
$this->configure($config = []);
}
Some advice please???