Bug #918

F3_FLOW3_Cache_Backend_FileTest shows 2 errors on WAMP installation

Added by David Bruehlmeier 103 days ago. Updated 68 days ago.

Status:Resolved Start:2008-06-30
Priority:Could have Due date:
Assigned to:Bastian Waidelich % Done:

100%

Category:Cache
Target version:- Estimated time:0.00 hours

Description

Hi,

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)

Greetings, Dave

phpinfo.htm (59.5 KB) David Bruehlmeier, 2008-06-30 08:53


Related issues

duplicated by Bug #917 F3_FLOW3_Package_ManagerTest shows 2 errors on WAMP installation Closed 2008-06-30

Associated revisions

Revision 1073
Added by bwaidelich 68 days ago

  • FLOW3: (Cache) It's not always possible to check whether a file or directory is writable or not on Windows. Solution for now: Skip setCacheDirectoryThrowsExceptionOnNonWritableDirectory() in Windows environments. Fixes #918.
  • FLOW3: (Utility) getPathToTemporaryDirectoryReturnsPathWithTrailingSlash() checked whether temp-directory ends with a trailing slash as in DIRECTORY_SEPARATOR. Replaced this constant by a forward slash in the test now, as we're only working with forward slashes in FLOW3. Fixes #1134.

History

2008-07-26 11:05 - Bastian Waidelich

  • Assigned to set to Bastian Waidelich

2008-07-26 11:10 - Bastian Waidelich

  • Status changed from New to Closed

2008-07-26 11:10 - Bastian Waidelich

  • Status changed from Closed to Accepted

2008-07-26 17:40 - Bastian Waidelich

  • 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

2008-08-04 16:09 - Bastian Waidelich

  • Status changed from Needs Feedback to Resolved
  • % Done changed from 0 to 100

Applied in changeset r1073.

Also available in: Atom PDF