Skip to content

Commit

Permalink
make use of mickey179/vfsStream in unit tests: Zend\Test
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Jul 30, 2013
1 parent 0a74768 commit 3ef247f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"doctrine/annotations": ">=1.0",
"ircmaxell/random-lib": "dev-master",
"ircmaxell/security-lib": "dev-master",
"mikey179/vfsStream": "1.2.*",
"ocramius/proxy-manager": "0.4.*",
"phpunit/PHPUnit": "3.7.*"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
*/
namespace ZendTest\Test\PHPUnit\Controller;

use org\bovigo\vfs\vfsStream;
use org\bovigo\vfs\vfsStreamWrapper;
use Zend\Console\Console;
use Zend\Mvc\Application;
use Zend\Mvc\MvcEvent;
Expand All @@ -26,7 +28,8 @@ class AbstractControllerTestCaseTest extends AbstractHttpControllerTestCase
{
public function tearDownCacheDir()
{
$cacheDir = sys_get_temp_dir() . '/zf2-module-test';
vfsStreamWrapper::register();
$cacheDir = vfsStream::url('zf2-module-test');
if (is_dir($cacheDir)) {
static::rmdir($cacheDir);
}
Expand Down

0 comments on commit 3ef247f

Please sign in to comment.