Showing 102 of 102 total issues
Call to undeclared method \NW\RequestLimitBundle\Tests\Unit\Utils\RestrictorTest::never
Open
Open
$storageManager->expects($this->never())->method('getItem');
- Exclude checks
Parameter $container
has undeclared type \Symfony\Component\DependencyInjection\ContainerBuilder
Open
Open
public function build(ContainerBuilder $container)
- Exclude checks
Call to method get
from undeclared class \Memcached
Open
Open
return $this->_memcached->get($key);
- Exclude checks
Class extends undeclared class \Symfony\Component\HttpKernel\Kernel
Open
Open
class AppKernel extends Kernel
- Exclude checks
Parameter $loader
has undeclared type \Symfony\Component\Config\Loader\LoaderInterface
Open
Open
public function registerContainerConfiguration(LoaderInterface $loader)
- Exclude checks
Class extends undeclared class \PHPUnit_Framework_TestCase
Open
Open
class RestrictorTest extends \PHPUnit_Framework_TestCase
- Exclude checks
Call to undeclared method \NW\RequestLimitBundle\Tests\Unit\Utils\RestrictorTest::once
Open
Open
$storageManager->expects($this->once())
- Exclude checks
Class implements undeclared interface \Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface
Open
Open
class RestrictionsCollector implements DataCollectorInterface
- Exclude checks
@throws type of set
has undeclared type \Doctrine\DBAL\Exception
(Did you mean class \Exception) Open
Open
public function set($key, $expiresAt)
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\DependencyInjection\Loader\XmlFileLoader
Open
Open
$loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
- Exclude checks
@throws type of getItemsCount
has undeclared type \Doctrine\DBAL\Exception
(Did you mean class \Exception) Open
Open
public function getItemsCount()
- Exclude checks
Call to undeclared method \NW\RequestLimitBundle\Tests\Unit\Utils\RestrictorTest::createMock
Open
Open
$storageManager = $this->createMock(
- Exclude checks
Call to undeclared method \NW\RequestLimitBundle\Tests\Unit\Utils\RestrictorTest::once
Open
Open
$storageManager->expects($this->once())
- Exclude checks
@throws type of execute
has undeclared type \Doctrine\DBAL\DBALException
Open
Open
protected function execute(InputInterface $input, OutputInterface $output)
- Exclude checks
Parameter $response
has undeclared type \Symfony\Component\HttpFoundation\Response
Open
Open
public function collect(Request $request, Response $response, \Exception $exception = null)
- Exclude checks
@throws type of fetchAllItems
has undeclared type \Doctrine\DBAL\Exception
(Did you mean class \Exception) Open
Open
public function fetchAllItems()
- Exclude checks
Call to method getConnection
from undeclared class \Doctrine\ORM\EntityManager
Open
Open
$connection = $this->_em->getConnection();
- Exclude checks
Argument 2 (hasItem)
is true
but \NW\RequestLimitBundle\Tests\Unit\Utils\RestrictorTest::getStorageManagerMock()
takes false
defined at /code/Tests/Unit/Utils/RestrictorTest.php:45
Open
Open
$storageManager = $this->getStorageManagerMock('userId', true);
- Exclude checks
Call to method __construct
from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open
Open
$treeBuilder = new TreeBuilder();
- Exclude checks
Call to method root
from undeclared class \Symfony\Component\Config\Definition\Builder\TreeBuilder
Open
Open
$rootNode = $treeBuilder->root('request_limit');
- Exclude checks