-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"symbol-whitelist": [ | ||
"Illuminate\\Support\\ServiceProvider", | ||
"Illuminate\\Console\\Command", | ||
"config_path" | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace WayOfDev\Package\Bridge\Laravel\Console\Commands; | ||
|
||
use Illuminate\Console\Command; | ||
|
||
class PackageCommand extends Command | ||
Check failure on line 9 in src/Bridge/Laravel/Console/Commands/PackageCommand.php GitHub Actions / psalm (ubuntu-latest, 8.2, locked)PropertyNotSetInConstructor
Check failure on line 9 in src/Bridge/Laravel/Console/Commands/PackageCommand.php GitHub Actions / psalm (ubuntu-latest, 8.2, locked)PropertyNotSetInConstructor
Check failure on line 9 in src/Bridge/Laravel/Console/Commands/PackageCommand.php GitHub Actions / psalm (ubuntu-latest, 8.2, locked)PropertyNotSetInConstructor
Check failure on line 9 in src/Bridge/Laravel/Console/Commands/PackageCommand.php GitHub Actions / psalm (ubuntu-latest, 8.2, locked)PropertyNotSetInConstructor
Check failure on line 9 in src/Bridge/Laravel/Console/Commands/PackageCommand.php GitHub Actions / psalm (ubuntu-latest, 8.2, locked)PropertyNotSetInConstructor
|
||
{ | ||
protected $signature = 'package:command'; | ||
|
||
protected $description = 'Package command description'; | ||
|
||
public function handle(): int | ||
{ | ||
$this->info('Package command executed'); | ||
|
||
return self::SUCCESS; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace WayOfDev\Tests\Functional\Bridge\Laravel\Console\Commands; | ||
|
||
use PHPUnit\Framework\Attributes\Test; | ||
use WayOfDev\Tests\Functional\TestCase; | ||
|
||
class PackageCommandTest extends TestCase | ||
{ | ||
/** | ||
* @test | ||
*/ | ||
#[Test] | ||
public function it_executes_the_package_command_successfully(): void | ||
{ | ||
$this->artisan('package:command') | ||
->expectsOutput('Package command executed') | ||
->assertExitCode(0); | ||
} | ||
} |