Skip to content

Commit b57faf3

Browse files
committed
No need to use output control, assign directly
1 parent a847029 commit b57faf3

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

tests/PHPCtagsTest.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff 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';

0 commit comments

Comments
 (0)