->method('is_callable')
->will($this->returnValue(false));
$this->setupClass
- ->expects($this->once())
+ ->expects($this->any())
->method('getAvailableDbDriversForPdo')
->will($this->returnValue([]));
$result = $this->setupClass->getSupportedDatabases();
array('sqlite', 'mysql', 'oci', 'pgsql')
));
$this->setupClass
- ->expects($this->once())
+ ->expects($this->any())
->method('class_exists')
->will($this->returnValue(false));
$this->setupClass
- ->expects($this->exactly(2))
+ ->expects($this->any())
->method('is_callable')
->will($this->returnValue(false));
$this->setupClass
- ->expects($this->once())
+ ->expects($this->any())
->method('getAvailableDbDriversForPdo')
->will($this->returnValue([]));
$result = $this->setupClass->getSupportedDatabases();
array('sqlite', 'mysql', 'pgsql', 'oci')
));
$this->setupClass
- ->expects($this->once())
+ ->expects($this->any())
->method('class_exists')
->will($this->returnValue(true));
$this->setupClass
- ->expects($this->exactly(2))
+ ->expects($this->any())
->method('is_callable')
->will($this->returnValue(true));
$this->setupClass
- ->expects($this->once())
+ ->expects($this->any())
->method('getAvailableDbDriversForPdo')
- ->will($this->returnValue(['mysql']));
+ ->will($this->returnValue(['mysql', 'pgsql']));
$result = $this->setupClass->getSupportedDatabases();
$expectedResult = array(
'sqlite' => 'SQLite',