mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Add tests
This commit is contained in:
19
tests/PHPUnit/CustomAffixes/FolderWithAn@/ExampleTest.php
Normal file
19
tests/PHPUnit/CustomAffixes/FolderWithAn@/ExampleTest.php
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
class MyCustomClassTest extends PHPUnit\Framework\TestCase
|
||||||
|
{
|
||||||
|
public function assertTrueIsTrue()
|
||||||
|
{
|
||||||
|
$this->assertTrue(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
uses(MyCustomClassTest::class);
|
||||||
|
|
||||||
|
test('custom traits can be used', function () {
|
||||||
|
$this->assertTrueIsTrue();
|
||||||
|
});
|
||||||
|
|
||||||
|
test('trait applied in this file')->assertTrueIsTrue();
|
||||||
Reference in New Issue
Block a user