log("Testing Performance Assertions..."); // Test Execution Time $this->assertExecutionTimeLessThan(100, function() { usleep(10000); // 10ms }, "Execution time should be less than 100ms"); // Test Memory Usage $this->assertMemoryUsageLessThan(1024 * 1024, function() { $a = str_repeat('a', 1024); // 1KB }, "Memory usage should be less than 1MB"); $this->log("Testing File Assertions..."); $tempFile = __DIR__ . '/temp_test_file.txt'; $this->assertFileExists($tempFile); $this->assertFileNotExists(__DIR__ . '/non_existent_file.txt'); $this->assertDirectoryExists(__DIR__); $this->assertIsReadable($tempFile); $this->assertIsWritable($tempFile); $this->log("All new assertions passed!"); } }