Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function testSqlFailure() |
||
34 | { |
||
35 | $globalConfig_input = [ |
||
36 | 'store.type' => 'sql', |
||
37 | 'store.sql.dsn' => 'somenonexistingfile', |
||
38 | ]; |
||
39 | |||
40 | $globalConfig = \SimpleSAML_Configuration::loadFromArray($globalConfig_input); |
||
41 | \SimpleSAML_Configuration::setPreLoadedConfig($globalConfig, 'config.php'); |
||
42 | $testData = new TestData(['host' => 'test.localhost']); |
||
43 | |||
44 | $test = new Sql($testData); |
||
45 | $testResult = $test->getTestResult(); |
||
46 | $this->assertEquals(State::FATAL, $testResult->getState()); |
||
47 | } |
||
51 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.