getMock('Alchemy\BinaryDriver\BinaryInterface'); $recessDriver->expects($this->once())->method('command'); $filesystem = $this->getMock('Symfony\Component\Filesystem\Filesystem'); $filesystem->expects($this->once())->method('mkdir'); $filesystem->expects($this->once())->method('dumpFile'); $compiler = new Compiler($filesystem, $recessDriver); $compiler->compile(__DIR__ . '/output.css', __FILE__); } }