Compare commits

...

2 Commits

Author SHA1 Message Date
ea72461f1b release: v3.0.3 2024-09-10 22:29:09 +01:00
49f15521e0 fix: printer method name 2024-09-10 22:29:01 +01:00
8 changed files with 12 additions and 12 deletions

View File

@ -79,11 +79,11 @@ final readonly class Configuration
} }
/** /**
* Gets the theme configuration. * Gets the printer configuration.
*/ */
public function theme(): Configuration\Theme public function printer(): Configuration\Printer
{ {
return new Configuration\Theme; return new Configuration\Printer;
} }
/** /**

View File

@ -9,7 +9,7 @@ use NunoMaduro\Collision\Adapters\Phpunit\Printers\DefaultPrinter;
/** /**
* @internal * @internal
*/ */
final readonly class Theme final readonly class Printer
{ {
/** /**
* Sets the theme to compact. * Sets the theme to compact.

View File

@ -54,7 +54,7 @@ final class UsesCall
} }
/** /**
* @deprecated Use `pest()->theme()->compact()` instead. * @deprecated Use `pest()->printer()->compact()` instead.
*/ */
public function compact(): self public function compact(): self
{ {

View File

@ -6,7 +6,7 @@ namespace Pest;
function version(): string function version(): string
{ {
return '3.0.1'; return '3.0.3';
} }
function testDirectory(string $file = ''): string function testDirectory(string $file = ''): string

View File

@ -1,5 +1,5 @@
Pest Testing Framework 3.0.1. Pest Testing Framework 3.0.3.
USAGE: pest <file> [options] USAGE: pest <file> [options]

View File

@ -1,3 +1,3 @@
Pest Testing Framework 3.0.1. Pest Testing Framework 3.0.3.

View File

@ -1381,7 +1381,7 @@
✓ it proxies to uses call ✓ it proxies to uses call
PASS Tests\Unit\Configuration\Theme PASS Tests\Unit\Configuration\Theme
✓ it creates a theme instance ✓ it creates a printer instance
PASS Tests\Unit\Console\Help PASS Tests\Unit\Console\Help
✓ it outputs the help information when --help is used ✓ it outputs the help information when --help is used

View File

@ -1,7 +1,7 @@
<?php <?php
it('creates a theme instance', function () { it('creates a printer instance', function () {
$theme = pest()->theme(); $theme = pest()->printer();
expect($theme)->toBeInstanceOf(Pest\Configuration\Theme::class); expect($theme)->toBeInstanceOf(Pest\Configuration\Printer::class);
}); });