Skip to content

Commit 47e9b19

Browse files
author
Eugene Matvejev
authored
Merge pull request #74 from eugene-matvejev/more-tests
RC10 - more tests
2 parents a381e8a + 571a819 commit 47e9b19

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/phpunit/Processor/ProcessorTest.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,4 +247,25 @@ private function processFiles($input, $output)
247247

248248
return $processor->getFiles();
249249
}
250+
251+
/**
252+
* @see ScriptHandler::processFiles
253+
* @test
254+
*/
255+
public function saveOutput()
256+
{
257+
$processor = new Processor($this->io);
258+
259+
$expectedOutputFile = $this->getRootDirectory() . '/../var/tests/' . __FUNCTION__ . '.css';
260+
@unlink($expectedOutputFile);
261+
$processor->attachFiles(
262+
$this->getSharedFixturesDirectory() . '/scss',
263+
$expectedOutputFile
264+
);
265+
$processor->processFiles(Processor::FORMATTER_COMPRESSED);
266+
267+
$processor->saveOutput();
268+
269+
$this->assertFileExists($expectedOutputFile);
270+
}
250271
}

0 commit comments

Comments
 (0)