mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
20 lines
354 B
PHP
20 lines
354 B
PHP
<?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();
|