open-orchestra/open-orchestra-base-api-bundle

View on GitHub
BaseApi/Tests/EventSubscriber/SerializerSubscriberTest.php

Summary

Maintainability
A
1 hr
Test Coverage

Method provideFormatAndResponseType has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function provideFormatAndResponseType()
    {
        $okCode = 200;
        $okResponse = Phake::mock('OpenOrchestra\BaseApi\Facade\FacadeInterface');
        $response = array();
Severity: Minor
Found in BaseApi/Tests/EventSubscriber/SerializerSubscriberTest.php - About 1 hr to fix

Method testOnKernelViewSerialize has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function testOnKernelViewSerialize($format, $responseContentType, $classAnnotation, $controllerResult, $expectedStatusCode)
Severity: Minor
Found in BaseApi/Tests/EventSubscriber/SerializerSubscriberTest.php - About 35 mins to fix

There are no issues that match your filters.

Category
Status