public function testSiteCompilationProjectGuess()
{
$path = $this->getMockProjectPath();
$in = $path . '.phrozn/';
// will guess that
$out = $path . 'public/';
$site = new Site($path, $out);
$outputter = new TestOutputter($this);
// sanity checks
$this->assertFileNotExists($out . '2011-02-24-default-site.html');
$this->assertFileNotExists($out . 'media/img/test.png');
$site->setOutputter($outputter)->compile();
// It may be enough here to simply test that no Exception is thrown
// Still... TESTS TESTS TESTS
// test existence of generated files
$this->assertFileExists($out . '2011-02-24-default-site.html', "Process Twig files into HTML files");
$this->assertFileExists($out . 'media/img/test.png', "Copy files in media folder");
// test copy integrity
$this->assertFileEquals($in . 'media/img/test.png', $out . 'media/img/test.png', "Fully copy file contents");
// test processor renderers
$this->assertFileEquals($path . 'expected/2011-02-24-default-site.html', $out . '2011-02-24-default-site.html', "Compile Twig files as expected");
}