mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
chore: adjusts tests
This commit is contained in:
@ -10,7 +10,7 @@ class MyCustomClassTest extends PHPUnit\Framework\TestCase
|
||||
}
|
||||
}
|
||||
|
||||
uses(MyCustomClassTest::class);
|
||||
pest()->extend(MyCustomClassTest::class);
|
||||
|
||||
test('custom traits can be used', function () {
|
||||
$this->assertTrueIsTrue();
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
uses(Tests\CustomTestCase\CustomTestCase::class)->in(__DIR__);
|
||||
pest()->use(Tests\CustomTestCase\CustomTestCase::class)->in(__DIR__);
|
||||
|
||||
test('closure was bound to CustomTestCase', function () {
|
||||
$this->assertCustomTrue();
|
||||
|
||||
@ -16,7 +16,7 @@ abstract class MyCustomClass extends PHPUnit\Framework\TestCase
|
||||
}
|
||||
}
|
||||
|
||||
uses(MyCustomClass::class, MyCustomTrait::class);
|
||||
pest()->extend(MyCustomClass::class)->use(MyCustomTrait::class);
|
||||
|
||||
test('custom traits can be used', function () {
|
||||
$this->assertTrueIsTrue();
|
||||
|
||||
Reference in New Issue
Block a user