WordPress.org

Make WordPress Core

Opened 6 months ago

Last modified 6 months 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:

Description

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 6 months ago.

Download all attachments as: .zip

Change History (5)

#1 @danielhuesken
6 months ago

  • Keywords has-patch added

#2 @netweb
6 months 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
6 months ago

  • Keywords reporter-feedback added

#4 @danielhuesken
6 months 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.