mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
revert: inline testing
This commit is contained in:
3
.gitattributes
vendored
3
.gitattributes
vendored
@ -13,6 +13,3 @@ CHANGELOG.md export-ignore
|
||||
CONTRIBUTING.md export-ignore
|
||||
README.md export-ignore
|
||||
|
||||
# Inline
|
||||
/src/NotExported export-ignore
|
||||
/phpunit.inline.xml export-ignore
|
||||
|
||||
@ -51,15 +51,8 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"pestphp/pest-dev-tools": "^2.0.0",
|
||||
"pestphp/pest-plugin-inline": "2.x-dev",
|
||||
"symfony/process": "^6.2.0"
|
||||
},
|
||||
"repositories": {
|
||||
"inline": {
|
||||
"type": "path",
|
||||
"url": "../pest-plugin-inline"
|
||||
}
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"prefer-stable": true,
|
||||
"config": {
|
||||
|
||||
@ -1,34 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
|
||||
backupGlobals="false"
|
||||
beStrictAboutTestsThatDoNotTestAnything="true"
|
||||
beStrictAboutOutputDuringTests="true"
|
||||
bootstrap="vendor/autoload.php"
|
||||
cacheResult="false"
|
||||
colors="true"
|
||||
failOnRisky="true"
|
||||
failOnWarning="true"
|
||||
processIsolation="false"
|
||||
stopOnError="false"
|
||||
stopOnFailure="false"
|
||||
cacheDirectory=".phpunit.cache"
|
||||
backupStaticProperties="false"
|
||||
displayDetailsOnIncompleteTests="true"
|
||||
displayDetailsOnSkippedTests="true"
|
||||
displayDetailsOnTestsThatTriggerDeprecations="true"
|
||||
displayDetailsOnTestsThatTriggerErrors="true"
|
||||
displayDetailsOnTestsThatTriggerNotices="true"
|
||||
displayDetailsOnTestsThatTriggerWarnings="true"
|
||||
>
|
||||
<testsuites>
|
||||
<testsuite name="default">
|
||||
<directory suffix=".php">./src</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<coverage>
|
||||
<include>
|
||||
<directory suffix=".php">./src</directory>
|
||||
</include>
|
||||
</coverage>
|
||||
</phpunit>
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
@ -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
|
||||
});
|
||||
@ -1,12 +1,9 @@
|
||||
<?php
|
||||
|
||||
use Pest\NotExported\MyTestCase;
|
||||
use Tests\CustomTestCaseInSubFolders\SubFolder\SubFolder\CustomTestCaseInSubFolder;
|
||||
|
||||
uses(CustomTestCaseInSubFolder::class)->in('PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder');
|
||||
|
||||
uses(MyTestCase::class)->in('../src/NotExported');
|
||||
|
||||
uses()->group('integration')->in('Visual');
|
||||
|
||||
// NOTE: global test value container to be mutated and checked across files, as needed
|
||||
|
||||
Reference in New Issue
Block a user