- Added single parameter array(keys => values) for where; and its test.
[activemongo.git] / tests / ValidatorsTest.php
blob0f768adc20b8ffbf4702268a14baa43c9c93bc17
1 <?php
3 class ValidatorsTest extends PHPUnit_Framework_TestCase
5 public function testValidatesPresence()
7 try {
8 $c = new Model1;
9 $c->b = 'cesar';
10 $c->save();
11 $this->assertTrue(false);
12 } catch (ActiveMongo_FilterException $e) {
13 $this->assertTrue(true);