Skip to content

Commit

Permalink
Converting ConfigureTest to phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed May 13, 2010
1 parent f3f37a1 commit 689e46b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/libs/configure.test.php
Expand Up @@ -648,14 +648,14 @@ function testFileLoadingWithArray() {
*/
function testFileLoadingReturnValue () {
$file = App::import('File', 'Name', false, array(), TEST_CAKE_CORE_INCLUDE_PATH . 'config' . DS . 'config.php', true);
$this->assertTrue($file);
$this->assertTrue(!empty($file));

$this->assertTrue(isset($file['Cake.version']));

$type = array('type' => 'File', 'name' => 'OtherName', 'parent' => false,
'file' => TEST_CAKE_CORE_INCLUDE_PATH . 'config' . DS . 'config.php', 'return' => true);
$file = App::import($type);
$this->assertTrue($file);
$this->assertTrue(!empty($file));

$this->assertTrue(isset($file['Cake.version']));
}
Expand Down

0 comments on commit 689e46b

Please sign in to comment.