Bolt\Tests\Configuration\ComposerConfigurationTest::testCheckSummaryReportsError PHP Метод

testCheckSummaryReportsError() публичный Метод

    public function testCheckSummaryReportsError()
    {
        $config = new Composer(TEST_ROOT);
        $config->setPath('database', '/path/to/nowhere');
        $verifier = new ComposerChecks($config);
        try {
            $verifier->checkDir('/path/to/nowhere');
            $this->fail('Bolt\\Exception\\BootException not thrown');
        } catch (BootException $e) {
            $message = strip_tags($e->getMessage());
            $this->assertRegExp("/The default folder \\/path\\/to\\/nowhere doesn't exist/", $message);
            $this->assertRegExp('/When using Bolt as a Composer package it will need to have access to the following folders/', $message);
            //$this->assertRegExp('/Bolt - Fatal error/', $e::$screen);
        }
    }