protected function setUp() { parent::setUp(); $this->database = $this->getMockBuilder('CouchDB\\Database')->disableOriginalConstructor()->getMock(); $this->database->expects($this->any())->method('getName')->willReturn('test'); $this->updater = new BatchUpdater($this->client, $this->database); }
protected function setUp() { parent::setUp(); $this->db = new Database('test', $this->connection, $this->client); }