| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function testSqlSuccess() |
||
| 17 | { |
||
| 18 | $globalConfig_input = [ |
||
| 19 | 'store.type' => 'sql', |
||
| 20 | 'store.sql.dsn' => 'sqlite:/tmp/test.sqlite', |
||
| 21 | ]; |
||
| 22 | |||
| 23 | $globalConfig = \SimpleSAML_Configuration::loadFromArray($globalConfig_input); |
||
| 24 | \SimpleSAML_Configuration::setPreLoadedConfig($globalConfig, 'config.php'); |
||
|
|
|||
| 25 | $testData = new TestData(['host' => 'test.localhost']); |
||
| 26 | |||
| 27 | $test = new Sql($testData); |
||
| 28 | $testResult = $test->getTestResult(); |
||
| 29 | $this->assertEquals(State::OK, $testResult->getState()); |
||
| 30 | unlink('/tmp/test.sqlite'); |
||
| 31 | } |
||
| 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.