4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Config\Tests;
14 use PHPUnit\Framework\TestCase;
15 use Symfony\Component\Config\ConfigCacheFactory;
17 class ConfigCacheFactoryTest extends TestCase
20 * @expectedException \InvalidArgumentException
21 * @expectedExceptionMessage Invalid type for callback argument. Expected callable, but got "object".
23 public function testCachWithInvalidCallback()
25 $cacheFactory = new ConfigCacheFactory(true);
27 $cacheFactory->cache('file', new \stdClass());