mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fixing errors in Configure test.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7928 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
8eade1adb3
commit
99a2fa439c
2 changed files with 4 additions and 3 deletions
|
@ -68,6 +68,7 @@ class ConfigureTest extends CakeTestCase {
|
||||||
if (file_exists(TMP . 'cache' . DS . 'persistent' . DS . 'test.php')) {
|
if (file_exists(TMP . 'cache' . DS . 'persistent' . DS . 'test.php')) {
|
||||||
unlink(TMP . 'cache' . DS . 'persistent' . DS . 'test.php');
|
unlink(TMP . 'cache' . DS . 'persistent' . DS . 'test.php');
|
||||||
}
|
}
|
||||||
|
Configure::write('debug', 2);
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -501,9 +502,9 @@ class AppImportTest extends UnitTestCase {
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
$this->assertTrue(class_exists('SamplePluginClassTestName'));
|
$this->assertTrue(class_exists('SamplePluginClassTestName'));
|
||||||
|
|
||||||
$result = App::import('Vendor', 'Sample');
|
$result = App::import('Vendor', 'ConfigureTestVendorSample');
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
$this->assertTrue(class_exists('SampleClassTestName'));
|
$this->assertTrue(class_exists('ConfigureTestVendorSample'));
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
$result = App::import('Vendor', 'SomeName', array('file' => 'some.name.php'));
|
$result = App::import('Vendor', 'SomeName', array('file' => 'some.name.php'));
|
||||||
|
|
|
@ -24,6 +24,6 @@
|
||||||
* @lastmodified $Date$
|
* @lastmodified $Date$
|
||||||
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
||||||
*/
|
*/
|
||||||
class SampleClassTestName {
|
class ConfigureTestVendorSample {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in a new issue