public function endTest(\PHPUnit_Framework_Test $test, $time)
 {
     if ($test instanceof \PHPUnit_Framework_Warning) {
         return;
     }
     if (!$test instanceof AbstractTestCase) {
         throw new \InvalidArgumentException('Test case must be descendant of Lmc\\Steward\\Test\\AbstractTestCase');
     }
     if ($test->wd instanceof \RemoteWebDriver) {
         $test->log('Destroying "%s" WebDriver for "%s::%s" (session %s)', ConfigProvider::getInstance()->browserName, get_class($test), $test->getName(), $test->wd->getSessionID());
         // Workaround for PhantomJS 1.x - see https://github.com/detro/ghostdriver/issues/343
         // Should be removed with PhantomJS 2
         $test->wd->execute('deleteAllCookies');
         $test->wd->close();
         $test->wd->quit();
     }
 }