Skip to content
Permalink
Browse files

Fixed namespaces

  • Loading branch information...
jrbasso committed Jun 25, 2012
1 parent a787d1f commit dde31b39df82af74802cf191590e7d239cdf50c6
@@ -95,7 +95,7 @@ public function testAddTestDirectoryRecursiveWithNonPhp() {
touch($Folder->path . DS . 'SomeNotesTest.txt');
touch($Folder->path . DS . 'NotHiddenTest.php');
$suite = $this->getMock('CakeTestSuite', array('addTestFile'));
$suite = $this->getMock('Cake\TestSuite\TestSuite', array('addTestFile'));
$suite
->expects($this->exactly(1))
->method('addTestFile');
@@ -19,6 +19,7 @@
namespace Cake\Test\TestCase\Utility;
use Cake\Core\Configure;
use Cake\TestSuite\TestCase;
use Cake\Utility\File;
use Cake\Utility\Validation;
/**
@@ -28,7 +28,9 @@
use Cake\View\ScaffoldView;
require_once dirname(dirname(__FILE__)) . DS . 'Model' . DS . 'models.php';
class_alias('Cake\Test\TestCase\Model\ScaffoldMock', 'Cake\Model\ScaffoldMock');
if (!class_exists('Cake\Model\ScaffoldMock')) {
class_alias('Cake\Test\TestCase\Model\ScaffoldMock', 'Cake\Model\ScaffoldMock');
}
/**
* TestScaffoldView class
@@ -77,7 +77,7 @@ public function __construct($coverage, BaseReporter $reporter) {
* @param Cake\TestSuite\Reporter\BaseReporter $reporter Reporter to suck params out of.
* @return void
*/
protected function setParams(BaseReporter $reporter) {
protected function _setParams(BaseReporter $reporter) {
if ($reporter->params['app']) {
$this->appTest = true;
}
@@ -19,6 +19,7 @@
use Cake\Model\Model;
use Cake\Model\Schema;
use Cake\Utility\ClassRegistry;
use Cake\Utility\Hash;
use Cake\Utility\Inflector;
use Cake\Utility\Set;
@@ -17,6 +17,7 @@
*/
namespace Cake\TestSuite\Reporter;
use Cake\Core\App;
use Cake\Core\Configure;
use Cake\TestSuite\Coverage\HtmlCoverageReport;
use Cake\Utility\Inflector;
@@ -13,6 +13,7 @@
namespace Cake\View;
use Cake\Controller\Controller;
use Cake\Network\Response;
use Cake\Utility\Set;
use Cake\Utility\Xml;
/**

0 comments on commit dde31b3

Please sign in to comment.
You can’t perform that action at this time.