浏览代码

Add Exception test

Thomas Rabaix 13 年之前
父节点
当前提交
efb17ab69b
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      Tests/Filter/ORM/FilterTest.php

+ 9 - 0
Tests/Filter/ORM/FilterTest.php

@@ -64,4 +64,13 @@ class FilterTest extends \PHPUnit_Framework_TestCase
         $filter->setValue(42);
         $this->assertEquals(42, $filter->getValue());
     }
+
+    /**
+     * @expectedException RuntimeException
+     */
+    public function testExceptionOnEmptyFieldName()
+    {
+        $filter = new FilterTest_Filter();
+        $filter->getFieldName();
+    }
 }