BaguettePHP/mastodon-api

View on GitHub
tests/RequesterTestCase.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method __construct from undeclared class \GuzzleHttp\Client (Did you mean class \Baguette\Mastodon\Client)
Open

        $this->client->setAPIHttpClient(new \GuzzleHttp\Client([
Severity: Critical
Found in tests/RequesterTestCase.php by phan

Possibly zero references to use statement for classlike/namespace GuzzleHttpClient (\GuzzleHttp\Client)
Open

use GuzzleHttp\Client as GuzzleHttpClient;
Severity: Minor
Found in tests/RequesterTestCase.php by phan

Parameter $body has undeclared type \Psr\Http\Message\StreamInterface
Open

        array $headers = [],
Severity: Minor
Found in tests/RequesterTestCase.php by phan

Static call to undeclared method \Baguette\Mastodon\TestCase::setUp
Open

        parent::setUp();
Severity: Critical
Found in tests/RequesterTestCase.php by phan

Call to method __construct from undeclared class \GuzzleHttp\Handler\MockHandler
Open

        $this->guzzle_mock_handler = new MockHandler;
Severity: Critical
Found in tests/RequesterTestCase.php by phan

Call to method __construct from undeclared class \GuzzleHttp\Psr7\Response
Open

        $response = new Response($status, $headers, $body, $version, $reason);
Severity: Critical
Found in tests/RequesterTestCase.php by phan

Call to method append from undeclared class \GuzzleHttp\Handler\MockHandler
Open

        $this->guzzle_mock_handler->append($response);
Severity: Critical
Found in tests/RequesterTestCase.php by phan

Property \Baguette\Mastodon\RequesterTestCase->guzzle_mock_handler has undeclared type \GuzzleHttp\Handler\MockHandler
Open

    private $guzzle_mock_handler;
Severity: Minor
Found in tests/RequesterTestCase.php by phan

There are no issues that match your filters.

Category
Status