public function testCropsInSubDirectory() { $url = new URL(['path' => 'images/(?:crops/)?(.*)$']); $this->assertEquals(['file.jpg', 200, 100, []], $url->parse('images/crops/file-200x100.jpg')); }