mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
feat: adjusts default conf
This commit is contained in:
@ -7,14 +7,13 @@
|
||||
|
|
||||
| The closure you provide to your test functions is always bound to a specific PHPUnit test
|
||||
| case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may
|
||||
| need to change it using the "uses()" function to bind a different classes or traits.
|
||||
| need to change it using the "pest()" function to bind a different classes or traits.
|
||||
|
|
||||
*/
|
||||
|
||||
uses(
|
||||
Tests\TestCase::class,
|
||||
// Illuminate\Foundation\Testing\RefreshDatabase::class,
|
||||
)->in('Feature');
|
||||
pest()->extend(Tests\TestCase::class)
|
||||
// ->use(Illuminate\Foundation\Testing\RefreshDatabase::class)
|
||||
->in('Feature');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@ -7,11 +7,11 @@
|
||||
|
|
||||
| The closure you provide to your test functions is always bound to a specific PHPUnit test
|
||||
| case class. By default, that class is "PHPUnit\Framework\TestCase". Of course, you may
|
||||
| need to change it using the "uses()" function to bind a different classes or traits.
|
||||
| need to change it using the "pest()" function to bind a different classes or traits.
|
||||
|
|
||||
*/
|
||||
|
||||
// uses(Tests\TestCase::class)->in('Feature');
|
||||
// pest()->extend(Tests\TestCase::class)->in('Feature');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@ -1402,7 +1402,7 @@
|
||||
|
||||
PASS Tests\Unit\Support\ExceptionTrace
|
||||
✓ it ensures the given closures reports the correct class name
|
||||
✓ it ensures the given closures reports the correct class name and suggests the [uses()] function
|
||||
✓ it ensures the given closures reports the correct class name and suggests the [pest()] function
|
||||
|
||||
PASS Tests\Unit\Support\HigherOrderMessage
|
||||
✓ undefined method exceptions
|
||||
|
||||
@ -13,7 +13,7 @@ it('ensures the given closures reports the correct class name', function () {
|
||||
'Call to undefined method Tests\IntentionallyNotExisting::testBasic().',
|
||||
);
|
||||
|
||||
it('ensures the given closures reports the correct class name and suggests the [uses()] function', function () {
|
||||
it('ensures the given closures reports the correct class name and suggests the [pest()] function', function () {
|
||||
$this->get();
|
||||
})->throws(
|
||||
Error::class,
|
||||
|
||||
Reference in New Issue
Block a user