/** * @dataProvider data_internal_error */ public function test_assign_internal_error($error_code, $expected) { $upload = new \phpbb\files\upload($this->filesystem, $this->factory, $this->language, $this->php_ini, $this->request, $this->phpbb_root_path); $this->assertSame($expected, $upload->assign_internal_error($error_code)); }