Skip to content

Commit

Permalink
Update usage of phpunit 10
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Feb 15, 2023
1 parent 4b09fac commit 810d3bd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
15 changes: 7 additions & 8 deletions phpunit.xml
@@ -1,12 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<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"
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
stopOnFailure="false"
cacheDirectory=".phpunit.cache"
>
<coverage>
<include>
Expand Down
2 changes: 1 addition & 1 deletion tests/ConfigFactoryTest.php
Expand Up @@ -57,7 +57,7 @@ public function canMergeConfigurationDeep(array $data, array $assert): void
$this->assertArraySimilar($config, $assert);
}

public function configDataProvider(): array
public static function configDataProvider(): array
{
return [
[
Expand Down
6 changes: 4 additions & 2 deletions tests/ConsoleTest.php
Expand Up @@ -2,6 +2,7 @@

namespace Tests;

use Illuminate\Contracts\Filesystem\FileNotFoundException;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Facades\Artisan;
use L5Swagger\Exceptions\L5SwaggerException;
Expand All @@ -15,9 +16,10 @@ class ConsoleTest extends TestCase
* @test
* @dataProvider provideGenerateCommands
*
* @param string $artisanCommand
* @param string $artisanCommand
*
* @throws L5SwaggerException
* @throws FileNotFoundException
*/
public function canGenerate(string $artisanCommand): void
{
Expand All @@ -38,7 +40,7 @@ public function canGenerate(string $artisanCommand): void
/**
* @return iterable
*/
public function provideGenerateCommands(): iterable
public static function provideGenerateCommands(): iterable
{
yield 'default' => [
'artisanCommand' => 'l5-swagger:generate',
Expand Down
2 changes: 1 addition & 1 deletion tests/SecurityDefinitionsTest.php
Expand Up @@ -97,7 +97,7 @@ public function canGenerateApiJsonFileWithSecurityDefinition(
/**
* @return iterable
*/
public function provideConfigAndSchemes(): iterable
public static function provideConfigAndSchemes(): iterable
{
$securitySchemes = [
'new_api_key_securitye' => [
Expand Down

0 comments on commit 810d3bd

Please sign in to comment.