F3_FLOW3_Cache_Backend_FileTest shows 2 errors on WAMP installation
I checked out the distribution from SVN as shown in the podcast. The default view is showing fine. When running the unit tests for the FLOW3 package, I get the following two errors:
F3_FLOW3_Cache_Backend_FileTest Failure in setCacheDirectoryThrowsExceptionOnNonWritableDirectory Detail D:\Entwicklung\Projekte\PHP\FLOW3\Packages\FLOW3\Tests\Cache\Backend\F3_FLOW3_Cache_Backend_FileTest.php:81 setCacheDirectory() to non-writable directory did not result in an exception. Failure in getCacheDirectoryReturnsThePreviouslySetDirectory Detail D:\Entwicklung\Projekte\PHP\FLOW3\Packages\PHPUnit\Resources\PHP\PHPUnit\Framework\Assert.php:1524 getDirectory() did not return the expected value. Failed asserting that <string:C:\WINDOWS\temp\/> is equal to <string:C:\WINDOWS\temp\>. getDirectory() did not return the expected value. Tests: 17 total, 0 skipped, 0 incomplete, 2 failed, 0 errors
I have attached the phpinfo() so you can have a look at my installation (basically Windows XP with Apache 2.2.6 and PHP 5.2.4)
Updated by Bastian Waidelich over 13 years ago
- Status changed from Accepted to Needs Feedback
setCacheDirectoryThrowsExceptionOnNonWritableDirectory will fail on Windows Vista because, on Vista Apache has to be executed with elevated rights. This means PHP is allowed to write to C:/Windows. Even without Admin rights, Vista creates virtual folders called "compatibility files". See http://windowsconnected.com/blogs/jerry/archive/2005/12/19/86.aspx.
Marking the test skipped on Windows machines is the only possibility I can think of at the moment..
getCacheDirectoryReturnsThePreviouslySetDirectory should not fail anymore since r1053