BrianHenryIE / strauss

Prefix PHP namespaces and classnames to allow multiple versions of libraries to exist without conflict.
https://brianhenryie.github.io/strauss/
MIT License
142 stars 23 forks source link

Symlink handling on Windows #103

Open BrianHenryIE opened 6 months ago

BrianHenryIE commented 6 months ago

There are two places where it's trying to delete a symlink, but the unlink() function that works on MacOS and Linux doesn't work on Windows. I don't have a Windows computer to test.

https://github.com/BrianHenryIE/strauss/blob/1cdb99c9408e7fc0b0b80804536c4b75e1be8949/tests/Integration/Util/IntegrationTestCase.php#L93-L103

https://github.com/BrianHenryIE/strauss/blob/1cdb99c9408e7fc0b0b80804536c4b75e1be8949/src/Cleanup.php#L70-L80

@szaleq Maybe you'd give this a try, please.