Skip to content

Commit 6dd4422

Browse files
Merge branch '10.5' into 11.5
2 parents 339c2c8 + 53cb0cf commit 6dd4422

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

ChangeLog-11.5.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes of the PHPUnit 11.5 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
44

5+
## [11.5.5] - 2025-MM-DD
6+
7+
### Changed
8+
9+
* Do not skip execution of test that depends on a test that is larger than itself
10+
511
## [11.5.4] - 2025-01-28
612

713
### Changed
@@ -72,6 +78,7 @@ All notable changes of the PHPUnit 11.5 release series are documented in this fi
7278
* [#6055](https://github.com/sebastianbergmann/phpunit/issues/6055): `assertNotContainsOnly()` (use `assertContainsNotOnlyArray()`, `assertContainsNotOnlyBool()`, `assertContainsNotOnlyCallable()`, `assertContainsNotOnlyFloat()`, `assertContainsNotOnlyInt()`, `assertContainsNotOnlyIterable()`, `assertContainsNotOnlyNumeric()`, `assertContainsNotOnlyObject()`, `assertContainsNotOnlyResource()`, `assertContainsNotOnlyClosedResource()`, `assertContainsNotOnlyScalar()`, or `assertContainsNotOnlyString()` instead)
7379
* [#6059](https://github.com/sebastianbergmann/phpunit/issues/6059): `containsOnly()` (use `containsOnlyArray()`, `containsOnlyBool()`, `containsOnlyCallable()`, `containsOnlyFloat()`, `containsOnlyInt()`, `containsOnlyIterable()`, `containsOnlyNumeric()`, `containsOnlyObject()`, `containsOnlyResource()`, `containsOnlyClosedResource()`, `containsOnlyScalar()`, or `containsOnlyString()` instead)
7480

81+
[11.5.5]: https://github.com/sebastianbergmann/phpunit/compare/11.5.4...11.5
7582
[11.5.4]: https://github.com/sebastianbergmann/phpunit/compare/11.5.3...11.5.4
7683
[11.5.3]: https://github.com/sebastianbergmann/phpunit/compare/11.5.2...11.5.3
7784
[11.5.2]: https://github.com/sebastianbergmann/phpunit/compare/11.5.1...11.5.2

src/Framework/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1794,7 +1794,7 @@ private function handleDependencies(): bool
17941794
'This test depends on a test that is larger than itself',
17951795
);
17961796

1797-
return false;
1797+
return true;
17981798
}
17991799

18001800
$returnValue = $passedTests->returnValue($dependencyTarget);

tests/end-to-end/event/risky-depends-on-larger-test.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Test Suite Finished (PHPUnit\TestFixture\Event\RiskyBecauseDependencyOnLargerTes
2828
Test Suite Started (PHPUnit\TestFixture\Event\RiskyBecauseDependencyOnLargerTest\SmallTest, 1 test)
2929
Test Considered Risky (PHPUnit\TestFixture\Event\RiskyBecauseDependencyOnLargerTest\SmallTest::testOne)
3030
This test depends on a test that is larger than itself
31+
Test Preparation Started (PHPUnit\TestFixture\Event\RiskyBecauseDependencyOnLargerTest\SmallTest::testOne)
32+
Test Prepared (PHPUnit\TestFixture\Event\RiskyBecauseDependencyOnLargerTest\SmallTest::testOne)
33+
Test Passed (PHPUnit\TestFixture\Event\RiskyBecauseDependencyOnLargerTest\SmallTest::testOne)
34+
Test Finished (PHPUnit\TestFixture\Event\RiskyBecauseDependencyOnLargerTest\SmallTest::testOne)
3135
Test Suite Finished (PHPUnit\TestFixture\Event\RiskyBecauseDependencyOnLargerTest\SmallTest, 1 test)
3236
Test Suite Finished (CLI Arguments, 2 tests)
3337
Test Runner Execution Finished

0 commit comments

Comments
 (0)