|
@@ -88,6 +88,16 @@ class UrlAnalyzerTest extends \PHPUnit_Framework_TestCase
|
88
|
88
|
$this->assertTrue($url_analyzer->haveMatch());
|
89
|
89
|
$this->assertEquals(Element::TYPE_OTHER, $url_analyzer->getType());
|
90
|
90
|
$this->assertEquals('M9PkADawUKU', $url_analyzer->getRefId());
|
|
91
|
+
|
|
92
|
+ $url_analyzer = new UrlAnalyzer($this->getNewElement('youtube.com', 'http://m.youtube.com/watch?feature=youtu.be&v=QQ3L3mqP5JY&desktop_uri=%2Fwatch%3Fv%3DQQ3L3mqP5JY%26feature%3Dyoutu.be'), UrlMatchs::$youtube);
|
|
93
|
+ $this->assertTrue($url_analyzer->haveMatch());
|
|
94
|
+ $this->assertEquals(Element::TYPE_OTHER, $url_analyzer->getType());
|
|
95
|
+ $this->assertEquals('QQ3L3mqP5JY', $url_analyzer->getRefId());
|
|
96
|
+
|
|
97
|
+ $url_analyzer = new UrlAnalyzer($this->getNewElement('youtube.com', 'http://m.youtube.com/watch?feature=youtu.be&v=QQ3L3mqP5JY'), UrlMatchs::$youtube);
|
|
98
|
+ $this->assertTrue($url_analyzer->haveMatch());
|
|
99
|
+ $this->assertEquals(Element::TYPE_OTHER, $url_analyzer->getType());
|
|
100
|
+ $this->assertEquals('QQ3L3mqP5JY', $url_analyzer->getRefId());
|
91
|
101
|
}
|
92
|
102
|
|
93
|
103
|
}
|