mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
first
This commit is contained in:
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
trait MyCustomTrait
|
||||
{
|
||||
public function assertFalseIsFalse()
|
||||
{
|
||||
assertFalse(false);
|
||||
}
|
||||
}
|
||||
|
||||
class MyCustomClass extends PHPUnit\Framework\TestCase
|
||||
{
|
||||
public function assertTrueIsTrue()
|
||||
{
|
||||
assertTrue(true);
|
||||
}
|
||||
}
|
||||
|
||||
uses(MyCustomClass::class, MyCustomTrait::class);
|
||||
|
||||
test('custom traits can be used', function () {
|
||||
$this->assertTrueIsTrue();
|
||||
});
|
||||
|
||||
test('trait applied in this file')->assertTrueIsTrue();
|
||||
Reference in New Issue
Block a user