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
- Fixed minor bugs
[activemongo.git]
/
test
/
ReferencesTest.php
blob
f64aa7969c4b57542ba21f07f7adc862dd14cbd0
1
<
?php
2
3
class
ReferencesTest
extends
PHPUnit_Framework_TestCase
4
{
5
public function
testReferences
()
6
{
7
$c
=
new
Model1
;
8
$c
->
a
=
"foobar"
;
9
$c
->
save
();
10
$ref
=
array
(
11
'
$ref
'
=>
'model1'
,
12
'
$id
'
=>
$c
->
getID
(),
13
'
$db
'
=>
DB
,
14
'class'
=>
'Model1'
15
);
16
$this
->
assertEquals
(
$c
->
getReference
(),
$ref
);
17
}
18
19
}