revert: inline testing

This commit is contained in:
Nuno Maduro
2022-12-04 20:06:07 +00:00
parent 3bc356ceec
commit dfe8a3deeb
6 changed files with 0 additions and 87 deletions

View File

@ -1,18 +0,0 @@
<?php
declare(strict_types=1);
namespace Pest\NotExported;
use PHPUnit\Framework\TestCase;
/**
* @internal
*/
class MyTestCase extends TestCase // @phpstan-ignore-line
{
public function assertIsTestable(string $testable): void
{
static::assertSame(MyTestableClass::class, $testable);
}
}

View File

@ -1,22 +0,0 @@
<?php
declare(strict_types=1);
namespace Pest\NotExported;
/**
* @internal
*/
final class MyTestableClass
{
public function foo(): void
{
// ...
}
}
it('foo', function () {
$testable = new MyTestableClass();
$this->assertIsTestable(get_class($testable)); // @phpstan-ignore-line
});