function testExecuteSetsWorkingDirectoryToProjectDirectory()
{
$cwd = "";
$this->application->task('foo', function () use(&$cwd) {
$cwd = getcwd();
});
$this->application->projectDirectory = __DIR__;
$this->application->execute('foo');
$this->assertEquals(__DIR__, $cwd);
}