Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Dec 18, 2024
1 parent 1bf7dde commit db324c6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
18 changes: 0 additions & 18 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -366,24 +366,6 @@ parameters:
count: 1
path: tests/EndpointCollection/SubscriptionEndpointCollectionTest.php

-
message: '#^Class Tests\\Http\\Adapter\\MockMollieHttpAdapter not found\.$#'
identifier: class.notFound
count: 1
path: tests/Http/Adapter/MollieHttpAdapterPickerTest.php

-
message: '#^Instantiated class Tests\\Http\\Adapter\\MockMollieHttpAdapter not found\.$#'
identifier: class.notFound
count: 1
path: tests/Http/Adapter/MollieHttpAdapterPickerTest.php

-
message: '#^Parameter \#1 \$httpClient of method Mollie\\Api\\Http\\Adapter\\MollieHttpAdapterPicker\:\:pickHttpAdapter\(\) expects GuzzleHttp\\ClientInterface\|Mollie\\Api\\Contracts\\HttpAdapterContract\|stdClass\|null, Tests\\Http\\Adapter\\MockMollieHttpAdapter given\.$#'
identifier: argument.type
count: 1
path: tests/Http/Adapter/MollieHttpAdapterPickerTest.php

-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with true will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
Expand Down
14 changes: 0 additions & 14 deletions tests/Http/Requests/DynamicRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,6 @@

class DynamicRequestTest extends TestCase
{
/** @test */
public function it_throws_exception_for_invalid_resource_class()
{
$this->expectException(InvalidArgumentException::class);
$this->expectExceptionMessage("The resource class 'NonExistentClass' does not exist.");

$request = new class('some-url') extends DynamicRequest
{
protected static string $method = Method::GET;
};

$request->setHydratableResource('NonExistentClass');
}

/** @test */
public function it_accepts_valid_resource_class()
{
Expand Down

0 comments on commit db324c6

Please sign in to comment.