open-orchestra/open-orchestra-front-bundle

View on GitHub
FrontBundle/Tests/EventSubscriber/KernelExceptionSubscriberTest.php

Summary

Maintainability
A
1 hr
Test Coverage

Method setUp has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function setUp()
    {
        $this->mainAlias = Phake::mock('OpenOrchestra\ModelInterface\Model\SiteAliasInterface');
        Phake::when($this->mainAlias)->getLanguage()->thenReturn($this->currentLanguage);
        $this->site = Phake::mock('OpenOrchestra\ModelInterface\Model\ReadSiteInterface');
Severity: Minor
Found in FrontBundle/Tests/EventSubscriber/KernelExceptionSubscriberTest.php - About 1 hr to fix

There are no issues that match your filters.

Category
Status