1 | <?php |
||
12 | class AbstractCollectionTest extends ZorkTest |
||
13 | { |
||
14 | /** |
||
15 | * Tests Itafroma\Zork\AbstractCollection::create(). |
||
16 | * |
||
17 | * @covers Itafroma\Zork\State\AbstractCollection::create |
||
18 | * @dataProvider abstractCollectionPropertyProvider |
||
19 | */ |
||
20 | public function testCreateAtom($abstract_collection, $property_name) |
||
26 | |||
27 | /** |
||
28 | * Tests Itafroma\Zork\State\AbstractCollection::get() when atom exists. |
||
29 | * |
||
30 | * @covers Itafroma\Zork\State\AbstractCollection::get |
||
31 | * @dataProvider abstractCollectionPropertyProvider |
||
32 | */ |
||
33 | public function testGetAtomExists($abstract_collection, $property_name, $property_value) |
||
39 | |||
40 | /** |
||
41 | * Tests Itafroma\Zork\State\AbstractCollection::get() when atom exists. |
||
42 | * |
||
43 | * @covers Itafroma\Zork\State\AbstractCollection::get |
||
44 | * @dataProvider abstractCollectionPropertyProvider |
||
45 | */ |
||
46 | public function testGetAtomDoesNotExist($abstract_collection, $property_name) |
||
50 | |||
51 | /** |
||
52 | * Tests Itafroma\Zork\State\AbstractCollection::set(). |
||
53 | * |
||
54 | * @covers Itafroma\Zork\State\AbstractCollection::set |
||
55 | * @dataProvider abstractCollectionPropertyProvider |
||
56 | */ |
||
57 | public function testSet($abstract_collection, $property_name, $property_value) |
||
64 | |||
65 | /** |
||
66 | * Tests Itafroma\Zork\State\AbstractCollection::exists() when the atom exists. |
||
67 | * |
||
68 | * @covers Itafroma\Zork\State\AbstractCollection::exists |
||
69 | * @dataProvider abstractCollectionPropertyProvider |
||
70 | */ |
||
71 | public function testExistsAtomExists($abstract_collection, $property_name, $property_value) |
||
77 | |||
78 | /** |
||
79 | * Tests Itafroma\Zork\State\AbstractCollection::exists() when the atom does not exist. |
||
80 | * |
||
81 | * @covers Itafroma\Zork\State\AbstractCollection::exists |
||
82 | * @dataProvider abstractCollectionPropertyProvider |
||
83 | */ |
||
84 | public function testExistsAtomDoesNotExist($abstract_collection, $property_name) |
||
88 | |||
89 | /** |
||
90 | * Provides an abstract collection mock with test properties. |
||
91 | */ |
||
92 | public function abstractCollectionPropertyProvider() |
||
103 | } |
||
104 |