mirror of
https://github.com/danog/psalm-plugin-phpunit.git
synced 2024-12-03 09:57:52 +01:00
17 lines
446 B
PHP
Executable File
17 lines
446 B
PHP
Executable File
<?php
|
|
namespace Psalm\PhpUnitPlugin;
|
|
|
|
use SimpleXMLElement;
|
|
use Psalm\Plugin\PluginEntryPointInterface;
|
|
use Psalm\Plugin\RegistrationInterface;
|
|
|
|
class Plugin implements PluginEntryPointInterface
|
|
{
|
|
/** @return void */
|
|
public function __invoke(RegistrationInterface $psalm, SimpleXMLElement $config = null)
|
|
{
|
|
$psalm->addStubFile(__DIR__ . '/stubs/Assert.php');
|
|
$psalm->addStubFile(__DIR__ . '/stubs/TestCase.php');
|
|
}
|
|
}
|