function it_filters_links_by_regular_expression() { $this->subject->beConstructedWith(array('links' => array('https://www.ingenerator.com/test/matching-url', 'https://www.ingenerator.com/test/notmatch-url'))); $this->subject->getLinksMatching('_matching-url$_')->shouldBe(array('https://www.ingenerator.com/test/matching-url')); }