1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
namespace PhpConsole\Test\Storage;
class MongoDB extends \PhpConsole\Test\Storage {
/** * @return \PhpConsole\Storage */ protected function initStorage() { if(!class_exists('MongoClient')) { $this->markTestSkipped('Mongo extension not installed'); } try { return new \PhpConsole\Storage\MongoDB(); } catch(\Exception $exception) { $this->markTestSkipped('Unable to connect to MongoDB server'); } return null; } }
|