2018-11-14 06:36:33 +01:00
|
|
|
<?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)
|
|
|
|
{
|
2018-12-01 03:41:48 +01:00
|
|
|
$psalm->addStubFile(__DIR__ . '/stubs/Assert.php');
|
2018-11-14 06:36:33 +01:00
|
|
|
$psalm->addStubFile(__DIR__ . '/stubs/TestCase.php');
|
2018-11-25 00:27:52 +01:00
|
|
|
$psalm->addStubFile(__DIR__ . '/stubs/MockBuilder.php');
|
2018-11-25 07:40:30 +01:00
|
|
|
$psalm->addStubFile(__DIR__ . '/stubs/InvocationMocker.php');
|
2018-11-14 06:36:33 +01:00
|
|
|
}
|
|
|
|
}
|