BaguettePHP/mastodon-api

View on GitHub

Showing 443 of 443 total issues

Call to undeclared method \Baguette\Mastodon\Entity\StatusTest::assertEquals
Open

        $this->assertEquals(isset($input['tags'])        ? $input['tags']        : null, $actual->tags);
Severity: Critical
Found in tests/Entity/StatusTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\StatusTest::assertEquals
Open

        $this->assertEquals(isset($input['application']) ? $input['application'] : null, $actual->application);
Severity: Critical
Found in tests/Entity/StatusTest.php by phan

Call to undeclared method \Baguette\Mastodon\Service\TootTest::assertEquals
Open

        $this->assertEquals(isset($options['in_reply_to_id']) ? $options['in_reply_to_id'] : null, $actual->in_reply_to_id);
Severity: Critical
Found in tests/Service/TootTest.php by phan

Call to undeclared method \Baguette\Mastodon\functions\ScopeTest::assertEquals
Open

        $this->assertEquals($expected, $actual);
Severity: Critical
Found in tests/functions/ScopeTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\AccountTest::assertEquals
Open

        $this->assertEquals(isset($input['note'])            ? $input['note']            : null, $actual->note);
Severity: Critical
Found in tests/Entity/AccountTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\AttachmentTest::assertEquals
Open

        $this->assertEquals(isset($input['id'])   ? $input['id']   : null, $actual->id);
Severity: Critical
Found in tests/Entity/AttachmentTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\StatusTest::assertEquals
Open

        $this->assertEquals(isset($input['in_reply_to_account_id']) ? $input['in_reply_to_account_id'] : null, $actual->in_reply_to_account_id);
Severity: Critical
Found in tests/Entity/StatusTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\StatusTest::assertEquals
Open

        $this->assertEquals($expected['toArray'], toArrayValue($actual));
Severity: Critical
Found in tests/Entity/StatusTest.php by phan

Call to undeclared method \Baguette\Mastodon\Grant\GrantTest::assertEquals
Open

        $this->assertEquals($expected, DummyGrant::getFormParams($factory));
Severity: Critical
Found in tests/Grant/GrantTest.php by phan

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

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

Call to undeclared method \Baguette\Mastodon\Entity\NotificationTest::assertEquals
Open

        $this->assertEquals(isset($input['created_at']) ? new \DateTimeImmutable($input['created_at']) : null, $actual->created_at);
Severity: Critical
Found in tests/Entity/NotificationTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\StatusTest::assertEquals
Open

        $this->assertEquals(isset($input['reblogs_count'])    ? $input['reblogs_count']    : null, $actual->reblogs_count);
Severity: Critical
Found in tests/Entity/StatusTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\TagTest::assertEquals
Open

        $this->assertEquals($expected['toArray'], toArrayValue($actual));
Severity: Critical
Found in tests/Entity/TagTest.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

Cannot access private property \Baguette\Mastodon\Mastodon->session defined at src/Mastodon.php:31
Open

        $this->assertInstanceOf(SessionStorage::class, $actual->session);
Severity: Critical
Found in tests/functions/SessionTest.php by phan

Call to undeclared method \Baguette\Mastodon\functions\TootTest::assertEquals
Open

        $this->assertEquals($expected, $actual);
Severity: Critical
Found in tests/functions/TootTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\NotificationTest::assertEquals
Open

        $this->assertEquals(isset($input['type']) ? $input['type'] : null, $actual->type);
Severity: Critical
Found in tests/Entity/NotificationTest.php by phan

Call to undeclared method \Baguette\Mastodon\Entity\StatusTest::assertEquals
Open

        $this->assertEquals(isset($input['favourited'])   ? $input['favourited']   : null, $actual->favourited);
Severity: Critical
Found in tests/Entity/StatusTest.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

Call to undeclared method \Baguette\Mastodon\functions\CredentialTest::assertInstanceOf
Open

        $this->assertInstanceOf(Grant\Grant::class, $actual);
Severity: Critical
Found in tests/functions/CredentialTest.php by phan
Severity
Category
Status
Source
Language