/**
* tests rendering the version information
*
* @group writer
* @group sourcetest
*/
public function testRenderVersionIfNotSilentButWithoutVersion()
{
$mockLogger = $this->getMock('\\Monolog\\Logger', array(), array(), '', false);
$this->object->setLogger($mockLogger);
$version = array();
$this->object->setSilent(false);
self::assertSame($this->object, $this->object->renderVersion($version));
self::assertSame(' "GJK_Browscap_Version": {' . PHP_EOL . ' "Version": "0",' . PHP_EOL . ' "Released": ""' . PHP_EOL . ' },' . PHP_EOL, file_get_contents($this->file));
}