Bug #918

F3_FLOW3_Cache_Backend_FileTest shows 2 errors on WAMP installation

Added by David Bruehlmeier over 13 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Could have
Category:
Cache
Target version:
-
Start date:
2008-06-30
Due date:
% Done:

100%

Estimated time:
0.00 h
PHP Version:
Has patch:
Complexity:

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


Files

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

Related issues

Has duplicate TYPO3.Flow - Bug #917: F3_FLOW3_Package_ManagerTest shows 2 errors on WAMP installationClosed2008-06-30

Actions
#1

Updated by Bastian Waidelich over 13 years ago

  • Assignee set to Bastian Waidelich
#2

Updated by Bastian Waidelich over 13 years ago

  • Status changed from New to Closed
#3

Updated by Bastian Waidelich over 13 years ago

  • Status changed from Closed to Accepted
#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

#5

Updated by Bastian Waidelich over 13 years ago

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

Applied in changeset r1073.

Also available in: Atom PDF