1 | <?php |
||
17 | class DeployScriptsTestCase extends \PHPUnit_Framework_TestCase |
||
18 | { |
||
19 | /** |
||
20 | * Provides a predefined configuration set. |
||
21 | * |
||
22 | * @return array |
||
23 | */ |
||
24 | public static function getConfigurationSet() |
||
40 | |||
41 | /** |
||
42 | * Determines, if app/config/deploy.yml exists. |
||
43 | * |
||
44 | * @return void |
||
45 | */ |
||
46 | public function configYamlExists() |
||
52 | |||
53 | /** |
||
54 | * Provides a double of the \Symfony\Component\Config\Definition\Processor |
||
55 | * |
||
56 | * @param array $methods List of methods to be stubbed |
||
57 | * |
||
58 | * @return \PHPUnit_Framework_MockObject_MockObject |
||
59 | */ |
||
60 | public function getConfigurationProcessorDouble(array $methods = array()) |
||
67 | |||
68 | /** |
||
69 | * Provides a symfony application with the provided command setup |
||
70 | * |
||
71 | * @param AbstractCommand $command Instance of a command |
||
72 | * |
||
73 | * @return Application |
||
74 | */ |
||
75 | public function getSetUpApplication(AbstractCommand $command) |
||
82 | |||
83 | /** |
||
84 | * Provides the output sent to stderr|stdout of a specific command. |
||
85 | * |
||
86 | * @param AbstractCommand $command Instance of a command |
||
87 | * @param array $inputArgs Arguments to be passed tot he command via $input. |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | public function getOutputFromCommand(AbstractCommand $command, array $inputArgs = array()) |
||
104 | |||
105 | /** |
||
106 | * suppress output to stdout while test run. |
||
107 | * |
||
108 | * @return void |
||
109 | */ |
||
110 | public function suppressOutput() |
||
117 | } |
||
118 |