@@ -72,88 +72,101 @@ public function validateConfigurationOnValid()
7272 ]
7373 ];
7474
75- $ this ->assertTrue ($ this ->validateConfiguration ($ args ));
75+ $ this ->assertNull ($ this ->validateConfiguration ($ args ));
7676 }
7777
78+ /**
79+ * @see ScriptHandler::validateConfiguration
80+ *
81+ * @param $args
82+ *
83+ * @return bool
84+ */
7885 private function validateConfiguration ($ args )
7986 {
8087 return $ this ->invokeMethod (new ScriptHandler (), 'validateConfiguration ' , [$ args ]);
8188 }
8289 /*** *************************** OPTIONS VALIDATION *************************** ***/
8390 /**
84- * @see ScriptHandler::validateOptions
91+ * @see ScriptHandler::validateMandatoryOptions
8592 * @test
8693 *
8794 * @expectedException \InvalidArgumentException
8895 */
8996 public function validateOptionsExpectedExceptionOnMissingInput ()
9097 {
91- $ this ->validateOptions ([[ScriptHandler::OPTION_KEY_OUTPUT => 'output ' ]]);
98+ $ this ->validateMandatoryOptions ([[ScriptHandler::OPTION_KEY_OUTPUT => 'output ' ]]);
9299 }
93100
94101 /**
95- * @see ScriptHandler::validateOptions
102+ * @see ScriptHandler::validateMandatoryOptions
96103 * @test
97104 *
98105 * @expectedException \InvalidArgumentException
99106 */
100107 public function validateOptionsExpectedExceptionOnMissingOutput ()
101108 {
102- $ this ->validateOptions ([ScriptHandler::OPTION_KEY_INPUT => 'input ' ]);
109+ $ this ->validateMandatoryOptions ([ScriptHandler::OPTION_KEY_INPUT => 'input ' ]);
103110 }
104111
105112 /**
106- * @see ScriptHandler::validateOptions
113+ * @see ScriptHandler::validateMandatoryOptions
107114 * @test
108115 *
109116 * @expectedException \InvalidArgumentException
110117 */
111118 public function validateOptionsExpectedExceptionOnInputNotArray ()
112119 {
113- $ this ->validateOptions ([
120+ $ this ->validateMandatoryOptions ([
114121 ScriptHandler::OPTION_KEY_INPUT => 'string ' ,
115122 ScriptHandler::OPTION_KEY_OUTPUT => 'string '
116123 ]);
117124 }
118125
119126 /**
120- * @see ScriptHandler::validateOptions
127+ * @see ScriptHandler::validateMandatoryOptions
121128 * @test
122129 *
123130 * @expectedException \InvalidArgumentException
124131 */
125132 public function validateOptionsExpectedExceptionOnOutputNotString ()
126133 {
127- $ this ->validateOptions ([
134+ $ this ->validateMandatoryOptions ([
128135 ScriptHandler::OPTION_KEY_INPUT => ['string ' ],
129136 ScriptHandler::OPTION_KEY_OUTPUT => ['string ' ]
130137 ]);
131138 }
132139
133140 /**
134- * @see ScriptHandler::validateOptions
141+ * @see ScriptHandler::validateMandatoryOptions
135142 * @test
143+ *
144+ * @group tester
136145 */
137146 public function validateOptionsOnValid ()
138147 {
139- $ this ->assertTrue (
140- $ this ->validateOptions ([
141- ScriptHandler::OPTION_KEY_INPUT => ['string ' ],
142- ScriptHandler::OPTION_KEY_OUTPUT => 'string '
143- ])
148+ $ this ->assertNull (
149+ $ this ->validateMandatoryOptions (
150+ [
151+ ScriptHandler::OPTION_KEY_INPUT => ['string ' ],
152+ ScriptHandler::OPTION_KEY_OUTPUT => 'string '
153+ ]
154+ )
144155 );
145156 }
146157
147158 /**
159+ * @see ScriptHandler::validateMandatoryOptions
160+ *
148161 * @param array $config
149162 *
150163 * @return bool
151164 */
152- private function validateOptions ($ config )
165+ private function validateMandatoryOptions ($ config )
153166 {
154- return $ this ->invokeMethod (new ScriptHandler (), 'validateOptions ' , [[ $ config] ]);
167+ return $ this ->invokeMethod (new ScriptHandler (), 'validateMandatoryOptions ' , [$ config ]);
155168 }
156-
169+
157170 /*** *************************** INTEGRATION *************************** ***/
158171 /**
159172 * @see ScriptHandler::generateCSS
0 commit comments