public function testWriteBatchContent() { $records = array($this->getRecord(), $this->getRecord(), $this->getRecord()); $this->createHandler(); $this->handler->handleBatch($records); fseek($this->res, 0); $content = fread($this->res, 1024); $this->assertRegexp('/(testToken \\[\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}\\] .* \\[\\] \\[\\]\\n){3}/', $content); }