コード例 #1
0
ファイル: GeneratorTest.php プロジェクト: mohiva/manitou
 /**
  * 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
ファイル: ConfigTest.php プロジェクト: mohiva/manitou
 /**
  * Test if the `emptyLinesIndented` method returns false.
  */
 public function testIfEmptyLinesIntendedReturnsFalse()
 {
     $config = new Config();
     $config->indentEmptyLines(false);
     $this->assertFalse($config->emptyLinesIndented());
 }