File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
8
8
require_once 'Text/LanguageDetect.php ' ;
9
- require_once 'PHPUnit.php ' ;
10
- require_once 'Benchmark/Timer.php ' ;
9
+ require_once 'PHPUnit/Framework/TestCase.php ' ;
11
10
12
11
class Text_LanguageDetectTest extends PHPUnit_Framework_TestCase {
13
12
@@ -16,7 +15,7 @@ function setup ()
16
15
$ this ->x = new Text_LanguageDetect ;
17
16
18
17
if (!$ this ->x ->_setup_ok ($ err )) {
19
- die ($ err ->getMessage ());
18
+ $ this -> markTestSkipped ($ err ->getMessage ());
20
19
}
21
20
}
22
21
@@ -1735,16 +1734,3 @@ function test_detection()
1735
1734
}
1736
1735
1737
1736
}
1738
-
1739
- $ timer = new Benchmark_Timer ();
1740
-
1741
- $ timer ->start ();
1742
- $ suite = new PHPUnit_TestSuite ('langtest ' );
1743
- $ result = PHPUnit::run ($ suite );
1744
- echo $ result ->toString ();
1745
- $ timer ->stop ();
1746
- $ timer ->display ();
1747
-
1748
- /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 encoding=utf-8: */
1749
-
1750
- ?>
You can’t perform that action at this time.
0 commit comments