mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
23 lines
427 B
PHP
23 lines
427 B
PHP
<?php
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class InheritanceTest extends TestCase
|
|
{
|
|
public function foo()
|
|
{
|
|
return 'bar';
|
|
}
|
|
}
|
|
|
|
uses(InheritanceTest::class);
|
|
|
|
it('is a test', function () {
|
|
expect(true)->toBeTrue();
|
|
});
|
|
|
|
it('uses correct parent class', function () {
|
|
expect(get_parent_class($this))->toEqual(InheritanceTest::class);
|
|
expect($this->foo())->toEqual('bar');
|
|
})->depends('it is a test');
|