refactor: thanks

This commit is contained in:
Nuno Maduro
2020-07-01 20:23:00 +02:00
parent 460ce45349
commit db7c4b174f
6 changed files with 70 additions and 67 deletions

View File

@ -1,14 +0,0 @@
<?php
use Pest\Plugins\Thanks;
use Symfony\Component\Console\Output\BufferedOutput;
it('outputs funding options when --thanks is used')->skip('The plugin uses `exit()` so not sure how to implement this');
it('does not output funding options when --thanks is not used', function () {
$output = new BufferedOutput();
$plugin = new Thanks($output);
$plugin->handleArguments(['foo', 'bar']);
assertEquals('', $output->fetch());
});