@@ -10,7 +10,7 @@ public function testCleanupInputTrue()
1010 $ dom ->setOptions ([
1111 'cleanupInput ' => true ,
1212 ]);
13- $ dom ->loadFromFile ('tests/files/horrible .html ' );
13+ $ dom ->loadFromFile ('tests/files/big .html ' );
1414 $ this ->assertEquals (0 , count ($ dom ->find ('style ' )));
1515 $ this ->assertEquals (0 , count ($ dom ->find ('script ' )));
1616 }
@@ -21,9 +21,9 @@ public function testCleanupInputFalse()
2121 $ dom ->setOptions ([
2222 'cleanupInput ' => false ,
2323 ]);
24- $ dom ->loadFromFile ('tests/files/horrible .html ' );
24+ $ dom ->loadFromFile ('tests/files/big .html ' );
2525 $ this ->assertEquals (1 , count ($ dom ->find ('style ' )));
26- $ this ->assertEquals (1 , count ($ dom ->find ('script ' )));
26+ $ this ->assertEquals (22 , count ($ dom ->find ('script ' )));
2727 }
2828
2929 public function testRemoveStylesTrue ()
@@ -32,7 +32,7 @@ public function testRemoveStylesTrue()
3232 $ dom ->setOptions ([
3333 'removeStyles ' => true ,
3434 ]);
35- $ dom ->loadFromFile ('tests/files/horrible .html ' );
35+ $ dom ->loadFromFile ('tests/files/big .html ' );
3636 $ this ->assertEquals (0 , count ($ dom ->find ('style ' )));
3737 }
3838
@@ -42,7 +42,7 @@ public function testRemoveStylesFalse()
4242 $ dom ->setOptions ([
4343 'removeStyles ' => false ,
4444 ]);
45- $ dom ->loadFromFile ('tests/files/horrible .html ' );
45+ $ dom ->loadFromFile ('tests/files/big .html ' );
4646 $ this ->assertEquals (1 , count ($ dom ->find ('style ' )));
4747 $ this ->assertEquals ('text/css ' ,
4848 $ dom ->find ('style ' )->getAttribute ('type ' ));
@@ -54,7 +54,7 @@ public function testRemoveScriptsTrue()
5454 $ dom ->setOptions ([
5555 'removeScripts ' => true ,
5656 ]);
57- $ dom ->loadFromFile ('tests/files/horrible .html ' );
57+ $ dom ->loadFromFile ('tests/files/big .html ' );
5858 $ this ->assertEquals (0 , count ($ dom ->find ('script ' )));
5959 }
6060
@@ -64,9 +64,9 @@ public function testRemoveScriptsFalse()
6464 $ dom ->setOptions ([
6565 'removeScripts ' => false ,
6666 ]);
67- $ dom ->loadFromFile ('tests/files/horrible .html ' );
68- $ this ->assertEquals (1 , count ($ dom ->find ('script ' )));
69- $ this ->assertEquals ('text/JavaScript ' ,
67+ $ dom ->loadFromFile ('tests/files/big .html ' );
68+ $ this ->assertEquals (22 , count ($ dom ->find ('script ' )));
69+ $ this ->assertEquals ('text/javascript ' ,
7070 $ dom ->find ('script ' )->getAttribute ('type ' ));
7171 }
7272
0 commit comments