Skip to content

Commit

Permalink
Fixing basics.php test for phpunit.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jun 9, 2010
1 parent d27381f commit 255d0c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cake/tests/cases/basics.test.php
Expand Up @@ -152,7 +152,7 @@ public function testEnv() {

$_SERVER = $_ENV = array();

$this->assertFalse(env('TEST_ME'));
$this->assertNull(env('TEST_ME'));

$_ENV['TEST_ME'] = 'a';
$this->assertEqual(env('TEST_ME'), 'a');
Expand Down Expand Up @@ -237,7 +237,7 @@ public function testCache() {

Configure::write('Cache.disable', false);
$result = cache('basics_test', 'simple cache write');
$this->assertTrue($result);
$this->assertTrue((boolean)$result);
$this->assertTrue(file_exists(CACHE . 'basics_test'));

$result = cache('basics_test');
Expand Down

0 comments on commit 255d0c9

Please sign in to comment.