Procházet zdrojové kódy

Add Exception test

Thomas Rabaix před 13 roky
rodič
revize
efb17ab69b
1 změnil soubory, kde provedl 9 přidání a 0 odebrání
  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();
+    }
 }