/**
     * Test that an exception is thrown in the event that the application path is not found.
     *
     * @param \Envariable\Util\Filesystem $filesystem
     */
    function it_throws_an_exception_as_application_path_not_found(Filesystem $filesystem)
    {
        $frontControllerPath = 'path/to/index.php';
        $frontControllerContent = <<<FC
<?php

\$system_path = 'system';
\$renamed_application_folder = 'alternate';

require_once BASEPATH.'core/CodeIgniter.php';
FC;
        $filesystem->getApplicationRootPath()->willReturn('path/to');
        $filesystem->fileGetContents($frontControllerPath)->willReturn($frontControllerContent);
        $this->setFilesystem($filesystem);
        $this->shouldThrow(new \RuntimeException('Application path could not be found.'))->duringLocate($frontControllerPath);
    }