예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * Test if the `emptyLinesIndented` method returns false.
  */
 public function testIfEmptyLinesIntendedReturnsFalse()
 {
     $config = new Config();
     $config->indentEmptyLines(false);
     $this->assertFalse($config->emptyLinesIndented());
 }