コード例 #1
0
ファイル: LintTest.php プロジェクト: griffbrad/gasp
 public function testSetExtensionsNormalizesByRemovingLeadingDot()
 {
     $this->lint->setExtensions(['.dot', '.period']);
     $this->assertEquals(['dot', 'period'], $this->lint->getExtensions());
 }
コード例 #2
0
ファイル: TaskAbstractTest.php プロジェクト: griffbrad/gasp
 /**
  * @expectedException \Gasp\Exception
  */
 public function testAttemptingToSetInvalidOptionThrowsException()
 {
     $task = new Lint();
     $task->setOptions(['fafafafa' => true]);
 }