public function renderDivisionHeader($division, $parent = 'DefaultProperties') { if ($this->isSilent() || 'DefaultProperties' !== $parent) { return $this; } fputs($this->file, ';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ' . $division . PHP_EOL . PHP_EOL); return $this; }
/** * tests rendering the header of one division * * @group writer * @group sourcetest */ public function testRenderDivisionHeaderIfSilent() { $this->object->setSilent(true); self::assertSame($this->object, $this->object->renderDivisionHeader('test')); self::assertSame('', file_get_contents($this->file)); }