liip/LiipFunctionalTestBundle — Issue #20: Get Permission denied error Bug on Windows 7
Author: Icefish
Created: 2011-11-08 07:30:34+00:00
State: open

When I use LiipFunctionalTestBundle to test our project in Symfony2, I got Permission denied error.
below is my testsing enviroment and error message:

env:
OS:Windows 7 x32
PHP :5.3.5
PHPUnit: 3.5.14

OS:Windows 7 x64 sp1
PHP :5.3.6
PHPUnit: 3.5.14

config_test.yml:

doctrine:
dbal:
default_connection: default
connections:
default:
driver: pdo_sqlite
path: %kernel.cache_dir%/test.db

liip_functional_test:
cache_sqlite_db: true

but already get

1) Project\Tests\Functional\UserFunctionalTest::testGetUserInfo
ErrorException: Warning: unlink(D:\wamp\www\Project\app/cache/test/test.db): Permission denied in D:\wamp\www\Project\vendor\doctrine-dbal\lib\Doctrine\DBAL\Schema\SqliteSchemaManager.php line 42

D:\wamp\www\Project\vendor\symfony\src\Symfony\Component\HttpKernel\Debug\ErrorHandler.php:65
D:\wamp\www\Project\vendor\doctrine-dbal\lib\Doctrine\DBAL\Schema\SqliteSchemaManager.php:42
D:\wamp\www\Project\vendor\bundles\Liip\FunctionalTestBundle\Test\WebTestCase.php:142
D:\wamp\www\Project\src\ProjectBundle\Tests\Functional\UserFunctionalTest.php:20