浏览代码

[Config] fixed a unit test

Fabien Potencier 14 年之前
父节点
当前提交
4259530856
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/Symfony/Tests/Component/Config/Loader/LoaderTest.php

+ 1 - 1
tests/Symfony/Tests/Component/Config/Loader/LoaderTest.php

@@ -49,7 +49,7 @@ class LoaderTest extends \PHPUnit_Framework_TestCase
         $loader = new ProjectLoader1();
         $loader = new ProjectLoader1();
         $loader->setResolver($resolver);
         $loader->setResolver($resolver);
         try {
         try {
-            $loader->resolve(new \stdClass());
+            $loader->resolve('FOOBAR');
             $this->fail('->resolve() throws a FileLoaderLoadException if the resource cannot be loaded');
             $this->fail('->resolve() throws a FileLoaderLoadException if the resource cannot be loaded');
         } catch (FileLoaderLoadException $e) {
         } catch (FileLoaderLoadException $e) {
             $this->assertInstanceOf('Symfony\Component\Config\Exception\FileLoaderLoadException', $e, '->resolve() throws a FileLoaderLoadException if the resource cannot be loaded');
             $this->assertInstanceOf('Symfony\Component\Config\Exception\FileLoaderLoadException', $e, '->resolve() throws a FileLoaderLoadException if the resource cannot be loaded');