From d2f02f492239b08c1b72789f7102576daf6ae501 Mon Sep 17 00:00:00 2001 From: tianfenghan Date: Mon, 5 Jan 2026 17:23:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=93=8D=E4=BD=9C=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/aot/file_operations.phpt | 122 +++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 tests/aot/file_operations.phpt diff --git a/tests/aot/file_operations.phpt b/tests/aot/file_operations.phpt new file mode 100644 index 00000000..64a67dbd --- /dev/null +++ b/tests/aot/file_operations.phpt @@ -0,0 +1,122 @@ +--TEST-- +File Operations - File read/write, directory operations +--FILE-- + +--EXPECTF-- +Directory created: /tmp/aot_test_%s +File created: /tmp/aot_test_%s/test.txt +File content: +Hello, World! +This is a test file. +File size: 35 bytes +Content after append: +Hello, World! +This is a test file. +Appended line +Number of lines: 3 +File is readable +File is writable +Directory contents: +- second_test.txt +- test.txt +First line from handle: Hello, World! +File copied to: /tmp/aot_test_%s/copied_test.txt +File moved to: /tmp/aot_test_%s/moved_test.txt +Is test file a file: yes +Is temp dir a directory: yes +File modification time: %d-%d-%d %d:%d:%d +Cleanup completed