Skip to content

Commit

Permalink
Use io.Files instead of deprecated io.FileUtil
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Oct 24, 2021
1 parent 2d0a5a2 commit a297a39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/php/websocket/unittest/EnvironmentTest.class.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php namespace websocket\unittest;

use io\{File, FileUtil, Folder};
use io\{File, Files, Folder};
use lang\{ElementNotFoundException, Environment as System};
use unittest\Assert;
use unittest\{Expect, Test, Values};
Expand Down Expand Up @@ -48,7 +48,7 @@ public function properties_from_directory() {

try {
$prop= new File($dir, 'inject.ini');
FileUtil::setContents($prop, "[test]\nresult=success\n");
Files::write($prop, "[test]\nresult=success\n");
$environment= new Environment('dev', [$dir->getURI()]);
Assert::equals('success', $environment->properties('inject')->readString('test', 'result'));
} finally {
Expand Down

0 comments on commit a297a39

Please sign in to comment.