Skip to content

Commit 26c0592

Browse files
additional tests
1 parent 4a76545 commit 26c0592

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/phpunit/ScriptHandlerTest.php

+11-1
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,20 @@ function validateConfigurationExpectedExceptionOnNotExistingKey()
2828
*
2929
* @expectedException \InvalidArgumentException
3030
*/
31-
function validateConfigurationExpectedExceptionOnNotArray()
31+
function validateConfigurationExpectedExceptionOnEmpty()
3232
{
3333
$this->invokeMethod(new ScriptHandler(), 'validateConfiguration', [[ScriptHandler::CONFIG_MAIN_KEY]]);
3434
}
35+
/**
36+
* @see ScriptHandler::validateConfiguration
37+
* @test
38+
*
39+
* @expectedException \InvalidArgumentException
40+
*/
41+
function validateConfigurationExpectedExceptionOnNotArray()
42+
{
43+
$this->invokeMethod(new ScriptHandler(), 'validateConfiguration', [[ScriptHandler::CONFIG_MAIN_KEY => 'string']]);
44+
}
3545

3646
/**
3747
* @see ScriptHandler::validateConfiguration

0 commit comments

Comments
 (0)