public function testFilterUrls() { $content = 'body { background: url(../images/bg.gif); }'; $matches = array(); $actual = LessUtils::filterUrls($content, function ($match) use(&$matches) { $matches[] = $match['url']; }); $this->assertEquals(array('../images/bg.gif'), $matches); }