BrowscapTest\Writer\IniWriterTest::testRenderVersionIfNotSilentButWithoutVersion PHP Method

testRenderVersionIfNotSilentButWithoutVersion() public method

tests rendering the version information
    public function testRenderVersionIfNotSilentButWithoutVersion()
    {
        $logger = $this->createMock(\Monolog\Logger::class);
        $this->object->setLogger($logger);
        $version = [];
        $this->object->setSilent(false);
        self::assertSame($this->object, $this->object->renderVersion($version));
        self::assertSame(';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Browscap Version' . PHP_EOL . PHP_EOL . '[GJK_Browscap_Version]' . PHP_EOL . 'Version=0' . PHP_EOL . 'Released=' . PHP_EOL . 'Format=' . PHP_EOL . 'Type=' . PHP_EOL . PHP_EOL, file_get_contents($this->file));
    }