tests as $test_case) { echo "{$test_case->name}\n"; Assert::Exception(function() use($test_case) { BoostSimpleTemplate::render_to_string($test_case->template, (array) $test_case->data); }, 'BoostSimpleTemplateException'); } } else { echo "*** Running tests from: {$test_name}\n"; foreach($test_cases->tests as $test_case) { if (property_exists($test_case, 'partials')) { continue; } echo "{$test_case->name}\n"; Assert::same($test_case->expected, BoostSimpleTemplate::render_to_string( $test_case->template, (array) $test_case->data)); } } } } run_tests();