@@ -28,16 +28,16 @@ protected function setUp()
2828 public function attachFiles ()
2929 {
3030 $ paths = [
31- static ::getSharedFixturesDirectory () . '/sass ' ,
32- static ::getSharedFixturesDirectory () . '/compass '
31+ static ::getSharedFixturesDirectory () . '/sass ' => 1 ,
32+ static ::getSharedFixturesDirectory () . '/compass ' => 1 ,
33+ static ::getSharedFixturesDirectory () . '/scss ' => 3 ,
34+ static ::getSharedFixturesDirectory () . '/scss/layout.scss ' => 1
3335 ];
34- $ cacheDir = dirname (dirname (__DIR__ )) . '/var/cache ' ;
35-
36- foreach ($ paths as $ path ) {
36+ foreach ($ paths as $ path => $ expectedFiles ) {
3737 $ processor = new Processor ($ this ->io );
38- $ processor ->attachFiles ($ path , $ cacheDir );
38+ $ processor ->attachFiles ($ path , '' );
3939
40- $ this ->assertCount (2 , $ processor ->getFiles ());
40+ $ this ->assertCount ($ expectedFiles , $ processor ->getFiles ());
4141 }
4242 }
4343
@@ -49,13 +49,7 @@ public function attachFiles()
4949 */
5050 public function attachFilesExpectedException ()
5151 {
52- $ path = static ::getSharedFixturesDirectory () . '/do-not-exists ' ;
53- $ cacheDir = dirname (dirname (__DIR__ )) . '/var/cache ' ;
54-
55- $ processor = new Processor ($ this ->io );
56- $ processor ->attachFiles ($ path , $ cacheDir );
57-
58- $ this ->assertCount (2 , $ processor ->getFiles ());
52+ (new Processor ($ this ->io ))->attachFiles (static ::getSharedFixturesDirectory () . '/do-not-exists ' , '' );
5953 }
6054
6155 /**
@@ -64,7 +58,7 @@ public function attachFilesExpectedException()
6458 */
6559 public function processFileSASS ()
6660 {
67- $ file = (new FileContainer (static ::getSharedFixturesDirectory () . '/compass/sass /layout.scss ' , '' ))
61+ $ file = (new FileContainer (static ::getSharedFixturesDirectory () . '/scss /layout.scss ' , '' ))
6862 ->setSourceContentFromSourcePath ();
6963
7064 (new Processor ($ this ->io ))->processFile ($ file );
@@ -80,7 +74,7 @@ public function processFileSASS()
8074 */
8175 public function processFileExpectedException ()
8276 {
83- $ file = (new FileContainer (static ::getSharedFixturesDirectory () . '/compass/sass/ ' , '' ))
77+ $ file = (new FileContainer (static ::getSharedFixturesDirectory () . '/compass ' , '' ))
8478 ->setSourceContentFromSourcePath ()
8579 ->setType (FileContainer::TYPE_UNKNOWN );
8680
0 commit comments