mirror of
https://github.com/danog/psalm-plugin-phpunit.git
synced 2024-12-02 09:27:56 +01:00
19 lines
584 B
PHP
Executable File
19 lines
584 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');
|
|
$psalm->addStubFile(__DIR__ . '/stubs/MockBuilder.php');
|
|
$psalm->addStubFile(__DIR__ . '/stubs/InvocationMocker.php');
|
|
}
|
|
}
|