Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | public function testImportWords() |
||
12 | { |
||
13 | |||
14 | $logger = new Logger('my_logger'); |
||
15 | $logger->pushHandler(new StreamHandler('/tmp/log.log', Logger::DEBUG)); |
||
16 | |||
17 | $list = new WordsList(); |
||
18 | $list->setLogger($logger); |
||
|
|||
19 | $list->importWords(file_get_contents(__DIR__ . '/../fixtures/lorem.txt')); |
||
20 | |||
21 | $this->assertEquals(100, $list->getWordsCount()); |
||
22 | $logger->info(sprintf('The list contains %s words', $list->getWordsCount())); |
||
23 | } |
||
24 | |||
27 |
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.