PhroznTest\Runner\CommandLine\Callback\SingleTest::testProjectCompile PHP Method

testProjectCompile() public method

public testProjectCompile ( )
    public function testProjectCompile()
    {
        $out = $this->outputter;
        $path = dirname(__FILE__) . '/project/subpath';
        mkdir($path);
        // initialize project
        $this->assertFalse(is_dir($path . '/.phrozn'));
        $this->assertFalse(is_dir($path . '/.phrozn/entries'));
        $this->assertFalse(is_readable($path . '/.phrozn/config.yml'));
        `{$this->phr} init {$path}/.phrozn`;
        $this->assertTrue(is_dir($path . '/.phrozn'));
        $this->assertTrue(is_dir($path . '/.phrozn/entries'));
        $this->assertTrue(is_readable($path . '/.phrozn/config.yml'));
        $result = $this->getParseResult("{$this->phr} single about.twig {$path} {$path}");
        $this->runner->setOutputter($out)->setParseResult($result)->execute();
        $out->assertInLogs("[OK]      Source directory located: {$path}/.phrozn");
        $out->assertInLogs("[OK]      Destination directory located: {$path}/");
        $this->assertFileExists($path . '/about/index.html');
        $this->assertFileNotExists($path . '/index.html');
    }