1 | <?php |
||
10 | class PersisterTest extends PHPUnit_Framework_TestCase |
||
11 | { |
||
12 | protected static $dbName = 'modlr_mongodb'; |
||
13 | |||
14 | protected $connection; |
||
15 | protected $smf; |
||
16 | protected $persister; |
||
17 | |||
18 | public function setUp() |
||
36 | |||
37 | public function tearDown() |
||
47 | |||
48 | public function testPersisterValues() |
||
54 | |||
55 | public function testMDFInstance() |
||
62 | |||
63 | /** |
||
64 | * @expectedException As3\Modlr\Persister\PersisterException |
||
65 | * @expectedExceptionMessage ID conversion currently only supports an object strategy, or none at all. |
||
66 | */ |
||
67 | public function testConvertIdInvalidStrategy() |
||
71 | |||
72 | /** |
||
73 | * @expectedException As3\Modlr\Persister\PersisterException |
||
74 | * @expectedExceptionMessage ID generation currently only supports an object strategy, or none at all. |
||
75 | */ |
||
76 | public function testGenerateIdInvalidStrategy() |
||
80 | |||
81 | public function testConvertIdObject() |
||
89 | |||
90 | public function testGenerateIdObject() |
||
95 | |||
96 | /** |
||
97 | * @expectedException As3\Modlr\Persister\PersisterException |
||
98 | * @expectedExceptionMessage ID conversion currently only supports an object strategy, or none at all. |
||
99 | */ |
||
100 | public function testConvertIdIncrementId() |
||
105 | |||
106 | /** |
||
107 | * @expectedException As3\Modlr\Persister\PersisterException |
||
108 | * @expectedExceptionMessage ID generation currently only supports an object strategy, or none at all. |
||
109 | */ |
||
110 | public function testGenerateIdIncrementId() |
||
115 | } |
||
116 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.