Skip to content

Commit

Permalink
Merge pull request #64 from weirdan/rename-stubs
Browse files Browse the repository at this point in the history
Rename stubs from *.php to *.phpstub
  • Loading branch information
muglug authored Apr 5, 2020
2 parents e997675 + 5128529 commit 4b662fd
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ class Plugin implements PluginEntryPointInterface
/** @return void */
public function __invoke(RegistrationInterface $psalm, SimpleXMLElement $config = null)
{
$psalm->addStubFile(__DIR__ . '/../stubs/Assert.php');
$psalm->addStubFile(__DIR__ . '/../stubs/Assert.phpstub');
if ($this->packageVersionIs('phpunit/phpunit', '>=', '7.5')) {
$psalm->addStubFile(__DIR__ . '/../stubs/Assert_75.php');
$psalm->addStubFile(__DIR__ . '/../stubs/Assert_75.phpstub');
}
$psalm->addStubFile(__DIR__ . '/../stubs/TestCase.php');
$psalm->addStubFile(__DIR__ . '/../stubs/MockBuilder.php');
$psalm->addStubFile(__DIR__ . '/../stubs/InvocationMocker.php');
$psalm->addStubFile(__DIR__ . '/../stubs/Prophecy.php');
$psalm->addStubFile(__DIR__ . '/../stubs/TestCase.phpstub');
$psalm->addStubFile(__DIR__ . '/../stubs/MockBuilder.phpstub');
$psalm->addStubFile(__DIR__ . '/../stubs/InvocationMocker.phpstub');
$psalm->addStubFile(__DIR__ . '/../stubs/Prophecy.phpstub');

class_exists(Hooks\TestCaseHandler::class, true);
$psalm->registerHooksFromClass(Hooks\TestCaseHandler::class);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4b662fd

Please sign in to comment.