repo.or.cz
/
activemongo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
- Added single parameter array(keys => values) for where; and its test.
[activemongo.git]
/
tests
/
ValidatorsTest.php
blob
0f768adc20b8ffbf4702268a14baa43c9c93bc17
1
<
?php
2
3
class
ValidatorsTest
extends
PHPUnit_Framework_TestCase
4
{
5
public function
testValidatesPresence
()
6
{
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
);
14
}
15
}
16
}