Skip to content

[13.x] Consistent test OS attributes#60162

Merged
taylorotwell merged 3 commits into
laravel:13.xfrom
jnoordsij:consistent-test-os-attributes
May 18, 2026
Merged

[13.x] Consistent test OS attributes#60162
taylorotwell merged 3 commits into
laravel:13.xfrom
jnoordsij:consistent-test-os-attributes

Conversation

@jnoordsij
Copy link
Copy Markdown
Contributor

@jnoordsij jnoordsij commented May 18, 2026

This PR fixes two issues:

  1. Usage of the RequiresOperatingSystemFamily attribute is replaced with RequiresOperatingSystem, as the former will do exact string matching, with the latter doing a regex match. Given that this was used with the regex argument Linux|Darwin, some tests were effectively always skipped.
  2. Consistently use Linux|Darwin as argument, rather than Linux|DAR. The latter likely works fine, as I suspect a case-insensitive regex match is done, but looks somewhat confusing and inconsistent. Darwin is correct per https://www.php.net/manual/en/reserved.constants.php#constant.php-os-family.

After applying the fixes, the SerializableClosureV1CacheRouteTest was shown to not properly clean up, hence a parent::tearDown was added.

@jnoordsij jnoordsij force-pushed the consistent-test-os-attributes branch from 5ecddf0 to 4a41a11 Compare May 18, 2026 13:38
@taylorotwell taylorotwell merged commit 3ff95bc into laravel:13.x May 18, 2026
50 of 52 checks passed
@jnoordsij jnoordsij deleted the consistent-test-os-attributes branch May 18, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants