Fixing the Sell tests

This commit is contained in:
Jose Lorenzo Rodriguez 2011-03-08 01:26:21 -04:30
parent fd8a7ed6d6
commit 8442d93d9e

View file

@ -22,6 +22,7 @@ App::uses('ConsoleOutput', 'Console');
App::uses('ConsoleInput', 'Console');
App::uses('ConsoleInputSubcommand', 'Console');
App::uses('ConsoleOptionParser', 'Console');
App::uses('File', 'Utility');
/**
* Base class for command-line utilities for automating programmer chores.
@ -609,10 +610,6 @@ class Shell extends Object {
$this->out(__('Creating file %s', $path));
}
if (!class_exists('File')) {
require LIBS . 'file.php';
}
if ($File = new File($path, true)) {
$data = $File->prepare($contents);
$File->write($data);