@@ -24,26 +24,26 @@ public function testMountWithDom()
2424
2525 public function testLoad ()
2626 {
27- $ dom = Dom ::load ('<div class="all"><p>Hey bro, <a href="google.com">click here</a><br /> :)</p></div> ' );
27+ $ dom = StaticDom ::load ('<div class="all"><p>Hey bro, <a href="google.com">click here</a><br /> :)</p></div> ' );
2828 $ div = $ dom ->find ('div ' , 0 );
2929 $ this ->assertEquals ('<div class="all"><p>Hey bro, <a href="google.com">click here</a><br /> :)</p></div> ' , $ div ->outerHtml );
3030 }
3131
3232 public function testLoadWithFile ()
3333 {
34- $ dom = Dom ::load (__DIR__ . '/files/small.html ' );
34+ $ dom = StaticDom ::load (__DIR__ . '/files/small.html ' );
3535 $ this ->assertEquals ('VonBurgermeister ' , $ dom ->find ('.post-user font ' , 0 )->text );
3636 }
3737
3838 public function testLoadFromFile ()
3939 {
40- $ dom = Dom ::loadFromFile (__DIR__ . '/files/small.html ' );
40+ $ dom = StaticDom ::loadFromFile (__DIR__ . '/files/small.html ' );
4141 $ this ->assertEquals ('VonBurgermeister ' , $ dom ->find ('.post-user font ' , 0 )->text );
4242 }
4343
4444 public function testFind ()
4545 {
46- Dom ::load (__DIR__ . '/files/horrible.html ' );
46+ StaticDom ::load (__DIR__ . '/files/horrible.html ' );
4747 $ this ->assertEquals ('<input type="submit" tabindex="0" name="submit" value="Информации" /> ' , Dom::find ('table input ' , 1 )->outerHtml );
4848 }
4949
@@ -52,13 +52,13 @@ public function testFind()
5252 */
5353 public function testFindNoLoad ()
5454 {
55- Dom ::find ('.post-user font ' , 0 );
55+ StaticDom ::find ('.post-user font ' , 0 );
5656 }
5757
5858 public function testFindI ()
5959 {
60- Dom ::load (__DIR__ . '/files/horrible.html ' );
61- $ this ->assertEquals ('[ Досие бр:12928 ] ' , Dom ::find ('i ' )[0 ]->innerHtml );
60+ StaticDom ::load (__DIR__ . '/files/horrible.html ' );
61+ $ this ->assertEquals ('[ Досие бр:12928 ] ' , StaticDom ::find ('i ' )[0 ]->innerHtml );
6262 }
6363
6464 public function testLoadFromUrl ()
@@ -69,8 +69,8 @@ public function testLoadFromUrl()
6969 ->with ('http://google.com ' )
7070 ->andReturn (file_get_contents (__DIR__ . '/files/small.html ' ));
7171
72- Dom ::loadFromUrl ('http://google.com ' , [], $ curl );
73- $ this ->assertEquals ('VonBurgermeister ' , Dom ::find ('.post-row div .post-user font ' , 0 )->text );
72+ StaticDom ::loadFromUrl ('http://google.com ' , [], $ curl );
73+ $ this ->assertEquals ('VonBurgermeister ' , StaticDom ::find ('.post-row div .post-user font ' , 0 )->text );
7474 }
7575
7676}
0 commit comments