File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -52,18 +52,15 @@ public function provider()
5252 public function testExport ($ testcase )
5353 {
5454 require_once __DIR__ . '/testcases/ ' . $ testcase ;
55+
5556 $ testcase_id = strstr ($ testcase , '. ' , true );
5657 $ testcase_class = 't_ ' . $ testcase_id ;
5758 $ testcase_object = new $ testcase_class ;
58-
5959 $ testcase_expect = $ testcase_object ->getExpectResult ();
60-
61- ob_start ();
62- $ testcase_example = $ testcase_object ->getExample ();
63- $ testcase_options = $ testcase_object ->getOptions ();
64- echo $ this ->object ->export ($ testcase_example , $ testcase_options );
65- $ testcase_result = ob_get_contents ();
66- ob_end_clean ();
60+ $ testcase_result = $ this ->object ->export (
61+ $ testcase_object ->getExample (),
62+ $ testcase_object ->getOptions ()
63+ );
6764
6865 $ expected_result = __DIR__ . '/ ' . $ testcase_id . '.testcase.expect ' ;
6966 $ acctural_result = __DIR__ . '/ ' . $ testcase_id . '.testcase.result ' ;
You can’t perform that action at this time.
0 commit comments