Good day to all, I want to write tests for my educational project. Most of the functionality of this data parsing. How to test it .. Show an example for the function below. They are similar, I think it will help me a lot ..
public function getUri($content) { $crawler = new Crawler($content, 'http'); $result = $crawler ->filter( '#main > ul > li' ) ->each( function (Crawler $node) { return $node->filter('a')->attr('href'); }); return $result; }