Skip to content

Commit

Permalink
Merge Sample fixtures into Scratch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann committed Nov 29, 2024
1 parent 7df10e8 commit 0e1fe19
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 69 deletions.
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 0e1fe19

Please sign in to comment.