1 | <?php |
||
13 | class DefsTest extends ZorkTest |
||
14 | { |
||
15 | /** |
||
16 | * Test Itafroma\Zork\oget() with empty property. |
||
17 | * |
||
18 | * @covers ::Itafroma\Zork\oget |
||
19 | * @dataProvider objectPropertyProvider |
||
20 | */ |
||
21 | public function testOgetEmptyProperty($struc, $property_key) |
||
25 | |||
26 | /** |
||
27 | * Test Itafroma\Zork\oget() with extant property. |
||
28 | * |
||
29 | * @covers ::Itafroma\Zork\oget |
||
30 | * @dataProvider objectPropertyProvider |
||
31 | */ |
||
32 | public function testOgetExtantProperty($struc, $property_key, $property_value) |
||
38 | |||
39 | /** |
||
40 | * Test Itafroma\Zork\oget() with non-objects and non-rooms. |
||
41 | * |
||
42 | * @covers ::Itafroma\Zork\oget |
||
43 | * @dataProvider strucPropertyProvider |
||
44 | * @expectedException \InvalidArgumentException |
||
45 | */ |
||
46 | public function testOgetOther($struc, $property_key) |
||
50 | |||
51 | /** |
||
52 | * Test Itafroma\Zork\oput() with regular objects. |
||
53 | * |
||
54 | * @covers ::Itafroma\Zork\oput |
||
55 | * @dataProvider objectPropertyProvider |
||
56 | */ |
||
57 | public function testOputObject($struc, $property_key, $property_value) |
||
64 | |||
65 | /** |
||
66 | * Test Itafroma\Zork\oput() with rooms. |
||
67 | * |
||
68 | * @covers ::Itafroma\Zork\oput |
||
69 | * @dataProvider roomPropertyProvider |
||
70 | */ |
||
71 | public function testOputRoom($struc, $property_key, $property_value) |
||
78 | |||
79 | /** |
||
80 | * Test Itafroma\Zork\oput() with non-objects and non-rooms. |
||
81 | * |
||
82 | * @covers ::Itafroma\Zork\oput |
||
83 | * @dataProvider strucPropertyProvider |
||
84 | * @expectedException \InvalidArgumentException |
||
85 | */ |
||
86 | public function testOputOther($struc, $property_key, $property_value) |
||
90 | |||
91 | /** |
||
92 | * Test Itafroma\Zork\oput() with empty object properties and add = false. |
||
93 | * |
||
94 | * @covers ::Itafroma\Zork\oput |
||
95 | * @dataProvider objectPropertyProvider |
||
96 | */ |
||
97 | public function testOputNoAdd($struc, $property_key, $property_value) |
||
103 | } |
||
104 |