spec\Atrauzzi\LaravelDoctrine\CacheFactorySpec::it_should_throw_invalid_argument_exception PHP Метод

it_should_throw_invalid_argument_exception() публичный Метод

    function it_should_throw_invalid_argument_exception()
    {
        \Atrauzzi\LaravelDoctrine\CacheFactory::setProviders(['memcached' => 'Atrauzzi\\LaravelDoctrine\\CacheProvider\\MemcachedProvider']);
        $this->beConstructedThrough('getCacheProvider', ['memcached', []]);
        try {
            $this->getWrappedObject();
            throw new ExampleException('but no runtime exception was thrown.');
        } catch (\InvalidArgumentException $e) {
        }
    }