Skip to content

Commit

Permalink
Remove Emulation logs directory one time at the beggining of the test…
Browse files Browse the repository at this point in the history
… suite
  • Loading branch information
GeLoLabs committed Nov 24, 2011
1 parent fcf1a7f commit cee8ba6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Tests/Emulation/WebTestCase.php
Expand Up @@ -18,7 +18,7 @@ class WebTestCase extends BaseWebTestCase
protected static $initialize = array();

/**
* Remove emulation cache & logs directories
* Remove emulation cache & logs directories for the given environment
*
* @param string $environment
*/
Expand All @@ -28,7 +28,9 @@ protected static function initialize($environment)
{
$filesystem = new Filesystem();
$filesystem->remove(__DIR__.'/cache/'.$environment);
$filesystem->remove(__DIR__.'/logs');

if(empty(self::$initialize))
$filesystem->remove(__DIR__.'/logs');

self::$initialize[$environment] = true;
}
Expand Down

0 comments on commit cee8ba6

Please sign in to comment.