/** * @test * @medium * @group selection-get-movies-url * @group selection */ public function 動画へのリンクを取得する() { $html = $this->plugin->fetchHtml($this->test_data->getHtmlPaths()[0]); $movies_url = $this->plugin->getMoviesUrl($html); $this->assertTrue(is_array($movies_url)); $this->assertEquals('http://jp.xvideos.com/video7994012/', $movies_url[0]); $this->assertEquals('http://jp.xvideos.com/video7994057/', $movies_url[1]); }
/** * @test * @group selection-test * @group selection-test-get-html-paths */ public function テスト用Htmlデータのパスを取得する() { $html_paths = $this->test_data->getHtmlPaths(); $this->assertEquals(3, count($html_paths)); }