Skip to content

Commit

Permalink
Add Exception test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Rabaix committed Aug 25, 2011
1 parent 6fd29bb commit efb17ab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Tests/Filter/ORM/FilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,13 @@ public function testValues()
$filter->setValue(42);
$this->assertEquals(42, $filter->getValue());
}

/**
* @expectedException RuntimeException
*/
public function testExceptionOnEmptyFieldName()
{
$filter = new FilterTest_Filter();
$filter->getFieldName();
}
}

0 comments on commit efb17ab

Please sign in to comment.