Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#40856 new enhancement

PHPUnit tests on Windows

Reported by: danielhuesken Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: Build/Test Tools Keywords: has-patch
Focuses: Cc:


We can get more PHP unit tests work under windows system if files wil not created in /temp and symlinks will not be used.

Attachments (1)

40856.patch (5.8 KB) - added by danielhuesken 3 years ago.

Download all attachments as: .zip

Change History (5)

3 years ago

#1 @danielhuesken
3 years ago

  • Keywords has-patch added

#2 @netweb
3 years ago

Related, possible duplicate of #39975

The patch in #39975 appears to cover a few more instances of /tmp usage in the codebase.

@danielhuesken The [symlink https://secure.php.net/manual/en/function.symlink.php] function is avialble on Windows with PHP 5.3 or greater, can I ask what issues you're having with symlink on Windows?

#3 @netweb
3 years ago

  • Keywords reporter-feedback added

#4 @danielhuesken
3 years ago

  • Keywords reporter-feedback removed

@netweb Yes, there are supported but with limitations minimum Windows Version is Windows Vista or Server 2008 and you must use NTFS File System.

I use Windows 10 with NTFS (Apache, PHP 7.1) and they will not work. There error message is "Warning: symlink(): Cannot create symlink, error code(1314)" it should be Permission related. See https://bugs.php.net/bug.php?id=54141.

I think that are many things you must know to run test on windows correctly.

Note: See TracTickets for help on using tickets.