예제 #1
0
 public function setUp()
 {
     $client = new Client();
     $this->database = $client->getDatabase('test');
     $this->gridFs = $this->database->getGridFs('images');
 }
예제 #2
0
 public function testGetGridFs()
 {
     $this->assertInstanceOf('\\Sokil\\Mongo\\GridFs', $this->database->getGridFs('images'));
 }
예제 #3
0
 public function setUp()
 {
     $client = new Client(getenv('PHPMONGO_DSN') ? getenv('PHPMONGO_DSN') : null);
     $this->database = $client->getDatabase('test');
     $this->gridFs = $this->database->getGridFs('images');
 }