BrowscapTest\Writer\CsvWriterTest::testRenderSectionBodyIfSilent PHP Метод

testRenderSectionBodyIfSilent() публичный Метод

tests rendering the body of one section
    public function testRenderSectionBodyIfSilent()
    {
        $this->object->setSilent(true);
        $section = ['Test' => 1, 'isTest' => true, 'abc' => 'bcd'];
        $collection = $this->createMock(\Browscap\Data\DataCollection::class);
        self::assertSame($this->object, $this->object->renderSectionBody($section, $collection));
        self::assertSame('', file_get_contents($this->file));
    }