/** * Test if the `indent` method doesn't indent an empty line. */ public function testNotIndentEmptyLine() { $config = new Config(); $config->indentEmptyLines(false); Generator::setConfig($config); /* @var Generator $generator */ $generator = $this->getMockForAbstractClass('\\com\\mohiva\\manitou\\Generator'); $value = $generator->indent(''); $this->assertSame('', $value); }
/** * Test if the `emptyLinesIndented` method returns false. */ public function testIfEmptyLinesIntendedReturnsFalse() { $config = new Config(); $config->indentEmptyLines(false); $this->assertFalse($config->emptyLinesIndented()); }