public function testConstructDefaultCookieAdapter() { $sa = Mockery::mock('Kumite\\Adapters\\StorageAdapter'); $ca = Mockery::type('Kumite\\Adapters\\PhpCookieAdapter'); $testConfig = $this->getTestConfig(); $this->controller->shouldReceive('__construct')->with(array('myTest' => new Kumite\Test('myTest', $testConfig)), $sa, $ca); $k = new Kumite(array('storageAdapter' => $sa, 'tests' => array('myTest' => $testConfig))); $k->init(); }