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

3
.gitattributes vendored
View File

@ -13,6 +13,3 @@ CHANGELOG.md export-ignore
CONTRIBUTING.md export-ignore CONTRIBUTING.md export-ignore
README.md export-ignore README.md export-ignore
# Inline
/src/NotExported export-ignore
/phpunit.inline.xml export-ignore

View File

@ -51,15 +51,8 @@
}, },
"require-dev": { "require-dev": {
"pestphp/pest-dev-tools": "^2.0.0", "pestphp/pest-dev-tools": "^2.0.0",
"pestphp/pest-plugin-inline": "2.x-dev",
"symfony/process": "^6.2.0" "symfony/process": "^6.2.0"
}, },
"repositories": {
"inline": {
"type": "path",
"url": "../pest-plugin-inline"
}
},
"minimum-stability": "dev", "minimum-stability": "dev",
"prefer-stable": true, "prefer-stable": true,
"config": { "config": {

View File

@ -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>

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
});

View File

@ -1,12 +1,9 @@
<?php <?php
use Pest\NotExported\MyTestCase;
use Tests\CustomTestCaseInSubFolders\SubFolder\SubFolder\CustomTestCaseInSubFolder; use Tests\CustomTestCaseInSubFolders\SubFolder\SubFolder\CustomTestCaseInSubFolder;
uses(CustomTestCaseInSubFolder::class)->in('PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder'); uses(CustomTestCaseInSubFolder::class)->in('PHPUnit/CustomTestCaseInSubFolders/SubFolder/SubFolder');
uses(MyTestCase::class)->in('../src/NotExported');
uses()->group('integration')->in('Visual'); uses()->group('integration')->in('Visual');
// NOTE: global test value container to be mutated and checked across files, as needed // NOTE: global test value container to be mutated and checked across files, as needed