PhroznTest\Runner\CommandLine\Callback\ClobberTest::testClobberNoWithExplicitPath PHP Method

testClobberNoWithExplicitPath() public method

    public function testClobberNoWithExplicitPath()
    {
        $out = $this->outputter;
        $path = dirname(__FILE__) . '/project';
        mkdir($path . '/.phrozn');
        touch($path . '/.phrozn/config.yml');
        $result = $this->getParseResult("phr clobber {$path}/.phrozn");
        $this->assertTrue(is_dir($path . '/.phrozn'));
        $this->assertTrue(is_readable($path . '/.phrozn/config.yml'));
        $this->runner->setUnitTestData('no')->setParseResult($result)->execute();
        $out->assertInLogs('Purging project data');
        $out->assertInLogs("Located project folder: {$path}/.phrozn");
        $out->assertInLogs("[FAIL]     Aborted..");
        $this->assertTrue(is_dir($path . '/.phrozn'));
        $this->assertTrue(is_readable($path . '/.phrozn/config.yml'));
    }