public function testRegisterDriver()
 {
     DriverList::registerDriver('Array', 'Stash\\Driver\\Ephemeral');
     $drivers = DriverList::getDrivers();
     $this->assertArrayHasKey('Array', $drivers, 'getDrivers returns Array driver');
 }
 /**
  *
  * @expectedException \RuntimeException
  * @expectedExceptionMessage Driver currently unavailable.
  */
 public function testUnavailableDriverException()
 {
     DriverList::registerDriver('FakeDriver', 'Stash\\Test\\Stubs\\DriverUnavailableStub');
     DriverFactory::createDriver(array('FakeDriver'), array());
 }