mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
26 lines
457 B
PHP
26 lines
457 B
PHP
<?php
|
|
|
|
trait MyCustomTrait
|
|
{
|
|
public function assertFalseIsFalse()
|
|
{
|
|
assertFalse(false);
|
|
}
|
|
}
|
|
|
|
abstract class MyCustomClass extends PHPUnit\Framework\TestCase
|
|
{
|
|
public function assertTrueIsTrue()
|
|
{
|
|
$this->assertTrue(true);
|
|
}
|
|
}
|
|
|
|
uses(MyCustomClass::class, MyCustomTrait::class);
|
|
|
|
test('custom traits can be used', function () {
|
|
$this->assertTrueIsTrue();
|
|
});
|
|
|
|
test('trait applied in this file')->assertTrueIsTrue();
|