Skip to content

Commit

Permalink
[Classloader] Fixed tests teardown when apc is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinwhittle committed Apr 25, 2011
1 parent 3ab5a51 commit f86bab7
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,17 @@ protected function setUp()
if (!(ini_get('apc.enabled') && ini_get('apc.enable_cli'))) {
$this->markTestSkipped('The apc extension is available, but not enabled.');
}

apc_clear_cache('user');
else
{
apc_clear_cache('user');
}
}

protected function tearDown()
{
apc_clear_cache('user');
if (ini_get('apc.enabled') && ini_get('apc.enable_cli')) {
apc_clear_cache('user');
}
}

public function testConstructor()
Expand Down

0 comments on commit f86bab7

Please sign in to comment.