| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 1 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function testDisplayWelcomeView() |
||
| 18 | { |
||
| 19 | |||
| 20 | // TODO: this is causing the following error: |
||
| 21 | // (InvalidArgumentException: Expecting a DOMNodeList or DOMNode instance, an array, a string, or null, but got "Illuminate\View\View".) |
||
| 22 | // This is probably because of the Dingo package since it's response is being used for everything even web requests.. |
||
| 23 | // or caused after upgrading to laravel 5.2 because of the composer requirement of `"symfony/dom-crawler": "2.8.*|3.0.*"` in case |
||
| 24 | // the crawler class was updated.. |
||
| 25 | // if you go to `Illuminate/Foundation/Testing/Concerns/InteractsWithPages.php` and this `dd(get_class($this->response));` to line 83 |
||
| 26 | // you should see `Dingo\Api\Http\Response` which when we call `->getContent()` on it returns `Illuminate\View\View` |
||
| 27 | // while the Crawler `vendor/symfony/dom-crawler/Crawler.php` is expecting other things as the error states. |
||
| 28 | // I will fix this later... |
||
| 29 | |||
| 30 | // $this->visit($this->page) |
||
| 31 | // ->see('Hello API'); |
||
| 32 | |||
| 33 | } |
||
| 34 | |||
| 36 |
This check marks private properties in classes that are never used. Those properties can be removed.