Skip to content

Commit

Permalink
Merge Sample fixtures into Scratch tests (#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann authored Nov 29, 2024
1 parent 7df10e8 commit add1c4d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 69 deletions.
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
"phpunit/phpunit": ">=8",
"vimeo/psalm": "^4.23"
},
"conflict": {
"symfony/process": ">=6, <6.4.14"
},
"suggest": {
"doctrine/annotations": "^1.7 || ^2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/TypedProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TypedProperties
public ?string $nullableString;

/**
* @var \OpenApi\Tests\Fixtures\TypedProperties[]
* @var TypedProperties[]
*
* @OA\Property()
*/
Expand Down
3 changes: 2 additions & 1 deletion tests/Processors/DocBlockDescriptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@

use OpenApi\Annotations as OA;
use OpenApi\Generator;
use OpenApi\Processors\Concerns\DocblockTrait;
use OpenApi\Processors\DocBlockDescriptions;
use OpenApi\Tests\OpenApiTestCase;

class DocBlockDescriptionsTest extends OpenApiTestCase
{
use \OpenApi\Processors\Concerns\DocblockTrait;
use DocblockTrait;

public function testDocBlockDescription(): void
{
Expand Down
38 changes: 0 additions & 38 deletions tests/Samples/AnyOf.php

This file was deleted.

3 changes: 0 additions & 3 deletions tests/Samples/Readme.md

This file was deleted.

25 changes: 0 additions & 25 deletions tests/Samples/VendorExtensions.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/ScratchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function testScratch(string $scratch, string $spec, string $version, arra
->setVersion($version)
->generate([$scratch]);

// file_put_contents($spec, $openapi->toYaml());
file_put_contents($spec, $openapi->toYaml());
$this->assertSpecEquals($openapi, file_get_contents($spec));
}
}

0 comments on commit add1c4d

Please sign in to comment.