• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
Recached

RonasIT / laravel-swagger / 4336920113

pending completion
4336920113

Pull #79

github

GitHub
Merge aa219043f into 7187aa030
Pull Request #79: #78: Added new PhpUnit extension and event subscriber to support PhpUnit v10 and deleted redundant PushDocumentation artisan command

7 of 7 new or added lines in 2 files covered. (100.0%)

446 of 476 relevant lines covered (93.7%)

10.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Tests/PhpUnitEventSubscribers/SwaggerSubscriber.php
1
<?php
2

3
namespace RonasIT\Support\AutoDoc\Tests\PhpUnitEventSubscribers;
4

5
use Illuminate\Contracts\Console\Kernel;
6
use Illuminate\Foundation\Application;
7
use PHPUnit\Event;
8
use PHPUnit\Event\Test\AfterLastTestMethodFinished;
9
use RonasIT\Support\AutoDoc\Services\SwaggerService;
10

11
final class SwaggerSubscriber implements Event\Test\AfterLastTestMethodFinishedSubscriber
12
{
13
    public function notify(AfterLastTestMethodFinished $event): void
14
    {
15
        $this->createApplication();
×
16

17
        app(SwaggerService::class)->saveProductionData();
×
18
    }
19

20
    protected function createApplication(): Application
21
    {
22
        $app = require_once base_path('bootstrap/app.php');
×
23

24
        $app->loadEnvironmentFrom('.env.testing');
×
25
        $app->make(Kernel::class)->bootstrap();
×
26

27
        return $app;
×
28
    }
29
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc