1 | <?php |
||
14 | class DumpCommandTest extends AbstractCommandTest |
||
15 | { |
||
16 | /** |
||
17 | * {@inheritDoc} |
||
18 | */ |
||
19 | protected function getTestCommand() |
||
23 | |||
24 | /** |
||
25 | * Ensure that the InputOptions exist |
||
26 | * |
||
27 | * @covers ::configure |
||
28 | */ |
||
29 | public function testConfigure() |
||
33 | |||
34 | /** |
||
35 | * Test that the command can successfully be executed |
||
36 | * |
||
37 | * @covers ::execute |
||
38 | */ |
||
39 | public function testExecute() |
||
45 | |||
46 | /** |
||
47 | * Test that the results can be filtered |
||
48 | * |
||
49 | * @covers ::execute |
||
50 | * @covers ::filterOutput |
||
51 | */ |
||
52 | public function testExecuteWithFilteredResults() |
||
58 | |||
59 | /** |
||
60 | * Ensure that the filter is applied to any column of the data |
||
61 | * |
||
62 | * @covers ::filterOutput |
||
63 | */ |
||
64 | public function testFilterOnAnyColumn() |
||
72 | |||
73 | /** |
||
74 | * Ensure that numeric property keys are replaced with nada |
||
75 | * |
||
76 | * @covers ::getParsedOutput |
||
77 | */ |
||
78 | public function testNumericKeysAreNotShown() |
||
85 | |||
86 | /** |
||
87 | * Ensure that nested array values for properties are displayed as JSON. Since it crosses multiple lines, |
||
88 | * we can't assert it exactly. |
||
89 | * |
||
90 | * @covers ::getParsedOutput |
||
91 | */ |
||
92 | public function testNestedArrayValuesAreDisplayedAsJson() |
||
99 | |||
100 | /** |
||
101 | * Ensure that a ConfigCollectionInterface is returned |
||
102 | * |
||
103 | * @covers \SilverLeague\Console\Command\Config\AbstractConfigCommand::getConfig |
||
104 | */ |
||
105 | public function testGetConfigCollectionInterface() |
||
110 | } |
||
111 |