Skip to content

Commit

Permalink
Prepare 9.7.2 release
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Dec 6, 2024
2 parents fc7ebe1 + c5916db commit 466a6e4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG-9.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

This changelog references the relevant changes (bug and security fixes) done to `orchestra/testbench-core`.

## 9.7.2

Released: 2024-12-06

### Fixes

* Fixes `Orchestra\Testbench\phpunit_version_compare()` function on PHPUnit (dev).

## 9.7.1

Released: 2024-12-05
Expand Down Expand Up @@ -41,6 +49,14 @@ Released: 2024-12-01

* Deprecate `Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole` trait, use `Orchestra\Testbench\Foundation\Console\TerminatingConsole` class instead.

## 9.6.4

Released: 2024-12-06

### Fixes

* Fixes `Orchestra\Testbench\phpunit_version_compare()` function on PHPUnit (dev).

## 9.6.3

Released: 2024-12-05
Expand Down
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ function phpunit_version_compare(string $version, ?string $operator = null): int
/** @var string $phpunit */
$phpunit = transform(
Version::id(),
fn (string $version) => $version === '11.5-dev' ? '11.5.0' : $version,
fn (string $version) => str_starts_with($version, '11.5-') ? '11.5.0' : $version,
);

if (\is_null($operator)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/HelpersTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function it_can_compare_laravel_version()
#[Test]
public function it_can_compare_phpunit_version()
{
$phpunit = Version::id() === '11.5-dev' ? '11.5.0' : Version::id();
$phpunit = str_starts_with(Version::id(), '11.5-') ? '11.5.0' : Version::id();

$this->assertSame(0, phpunit_version_compare($phpunit));
$this->assertTrue(phpunit_version_compare($phpunit, '=='));
Expand Down

0 comments on commit 466a6e4

Please sign in to comment.