mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ea72461f1b | |||
| 49f15521e0 |
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -9,7 +9,7 @@ use NunoMaduro\Collision\Adapters\Phpunit\Printers\DefaultPrinter;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
final readonly class Theme
|
||||
final readonly class Printer
|
||||
{
|
||||
/**
|
||||
* Sets the theme to compact.
|
||||
@ -54,7 +54,7 @@ final class UsesCall
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use `pest()->theme()->compact()` instead.
|
||||
* @deprecated Use `pest()->printer()->compact()` instead.
|
||||
*/
|
||||
public function compact(): self
|
||||
{
|
||||
|
||||
@ -6,7 +6,7 @@ namespace Pest;
|
||||
|
||||
function version(): string
|
||||
{
|
||||
return '3.0.1';
|
||||
return '3.0.3';
|
||||
}
|
||||
|
||||
function testDirectory(string $file = ''): string
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
|
||||
Pest Testing Framework 3.0.1.
|
||||
Pest Testing Framework 3.0.3.
|
||||
|
||||
USAGE: pest <file> [options]
|
||||
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
|
||||
Pest Testing Framework 3.0.1.
|
||||
Pest Testing Framework 3.0.3.
|
||||
|
||||
|
||||
@ -1381,7 +1381,7 @@
|
||||
✓ it proxies to uses call
|
||||
|
||||
PASS Tests\Unit\Configuration\Theme
|
||||
✓ it creates a theme instance
|
||||
✓ it creates a printer instance
|
||||
|
||||
PASS Tests\Unit\Console\Help
|
||||
✓ it outputs the help information when --help is used
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
it('creates a theme instance', function () {
|
||||
$theme = pest()->theme();
|
||||
it('creates a printer instance', function () {
|
||||
$theme = pest()->printer();
|
||||
|
||||
expect($theme)->toBeInstanceOf(Pest\Configuration\Theme::class);
|
||||
expect($theme)->toBeInstanceOf(Pest\Configuration\Printer::class);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user