diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-05-06 15:23:55 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-06-10 19:41:37 +0200 |
commit | 18d145f38f0f512039a15f64e132b2607283af89 (patch) | |
tree | 34c8d1b0102726a73e5f3ef16789c9ef3b32d961 /tests/test_framework/phpbb_database_test_case.php | |
parent | 7b0b6a99c031bdcbf2bfdf0d7ebbf1784ecbbd59 (diff) | |
download | forums-18d145f38f0f512039a15f64e132b2607283af89.tar forums-18d145f38f0f512039a15f64e132b2607283af89.tar.gz forums-18d145f38f0f512039a15f64e132b2607283af89.tar.bz2 forums-18d145f38f0f512039a15f64e132b2607283af89.tar.xz forums-18d145f38f0f512039a15f64e132b2607283af89.zip |
[ticket/12483] Use file_put_contents()
PHPBB3-12483
Diffstat (limited to 'tests/test_framework/phpbb_database_test_case.php')
-rw-r--r-- | tests/test_framework/phpbb_database_test_case.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_framework/phpbb_database_test_case.php b/tests/test_framework/phpbb_database_test_case.php index d8533a3d15..ff55b3fc63 100644 --- a/tests/test_framework/phpbb_database_test_case.php +++ b/tests/test_framework/phpbb_database_test_case.php @@ -80,9 +80,7 @@ abstract class phpbb_database_test_case extends PHPUnit_Extensions_Database_Test $schema_generator = new \phpbb\db\migration\schema_generator($classes, new \phpbb\config\config(array()), $db, new \phpbb\db\tools($db, true), $phpbb_root_path, $phpEx, $table_prefix); $schema_data = $schema_generator->get_schema(); - $fp = fopen(self::$schema_file, 'wb'); - fwrite($fp, json_encode($schema_data)); - fclose($fp); + file_put_contents(self::$schema_file, json_encode($schema_data)); } copy(self::$install_schema_file, self::$phpbb_schema_copy); |