Skip to content

Commit

Permalink
Merge 1094f4e into 7285dce
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Sep 21, 2022
2 parents 7285dce + 1094f4e commit 798a788
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -58,6 +58,6 @@
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"phpunit": "vendor/bin/phpunit"
"phpunit": "vendor/bin/phpunit --testdox"
}
}
10 changes: 9 additions & 1 deletion phpunit.xml
@@ -1,5 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
stopOnFailure="false"
>
<coverage>
<include>
<directory suffix=".php">src/</directory>
Expand Down
2 changes: 2 additions & 0 deletions src/L5SwaggerFacade.php
Expand Up @@ -7,6 +7,8 @@
class L5SwaggerFacade extends Facade
{
/**
* @codeCoverageIgnore
*
* @return string
*/
protected static function getFacadeAccessor(): string
Expand Down
2 changes: 2 additions & 0 deletions src/L5SwaggerServiceProvider.php
Expand Up @@ -61,6 +61,8 @@ public function register()
/**
* Get the services provided by the provider.
*
* @codeCoverageIgnore
*
* @return array
*/
public function provides()
Expand Down
5 changes: 4 additions & 1 deletion tests/ConfigFactoryTest.php
Expand Up @@ -4,12 +4,15 @@

use L5Swagger\Exceptions\L5SwaggerException;

/**
* @testdox Configuration factory
*/
class ConfigFactoryTest extends TestCase
{
/**
* @test
*/
public function ifThrowsExceptionIfDocumentationConfigNotFound(): void
public function itThrowsExceptionIfDocumentationConfigNotFound(): void
{
$config = config('l5-swagger');
unset($config['documentations']['default']);
Expand Down
3 changes: 3 additions & 0 deletions tests/ConsoleTest.php
Expand Up @@ -6,6 +6,9 @@
use Illuminate\Support\Facades\Artisan;
use L5Swagger\Exceptions\L5SwaggerException;

/**
* @testdox Console commands
*/
class ConsoleTest extends TestCase
{
/**
Expand Down
3 changes: 3 additions & 0 deletions tests/GeneratorTest.php
Expand Up @@ -9,6 +9,9 @@
use Symfony\Component\Yaml\Parser;
use Symfony\Component\Yaml\Yaml;

/**
* @testdox Generator
*/
class GeneratorTest extends TestCase
{
/** @test **/
Expand Down
3 changes: 3 additions & 0 deletions tests/HelpersTest.php
Expand Up @@ -4,6 +4,9 @@

use L5Swagger\Exceptions\L5SwaggerException;

/**
* @testdox Helpers
*/
class HelpersTest extends TestCase
{
/** @test */
Expand Down
3 changes: 3 additions & 0 deletions tests/RoutesTest.php
Expand Up @@ -7,6 +7,9 @@
use L5Swagger\GeneratorFactory;
use PHPUnit\Framework\MockObject\MockObject;

/**
* @testdox Routes
*/
class RoutesTest extends TestCase
{
/** @test */
Expand Down
3 changes: 3 additions & 0 deletions tests/SecurityDefinitionsTest.php
Expand Up @@ -5,6 +5,9 @@
use Illuminate\Filesystem\Filesystem;
use L5Swagger\Exceptions\L5SwaggerException;

/**
* @testdox Security definition
*/
class SecurityDefinitionsTest extends TestCase
{
/**
Expand Down

0 comments on commit 798a788

Please sign in to comment.