/** * @dataProvider blockProvider */ public function testParseNextBlock($expected_empty, $expected_end, $expected_var, $src, $test_mode) { $logger = new TestLogger(); $real_content = "<?php\n" . $src; $lang_file = new LangFile($logger, $real_content, $test_mode); //Skip php open tag $lang_file->tokens->next(); $lang_file->parseNextBlock(); $this->assertEquals($expected_empty, $lang_file->empty_blocks); $this->assertEquals($expected_end, $lang_file->end_blocks); $this->assertEquals($expected_var, $lang_file->var_blocks); }