mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
15 lines
448 B
PHP
15 lines
448 B
PHP
<?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());
|
|
});
|