From aae9534eb80401af56648910188b44f04b605c2c Mon Sep 17 00:00:00 2001 From: Sean Morris <640101+seanmorris@users.noreply.github.com> Date: Thu, 5 Dec 2024 17:42:32 -0500 Subject: [PATCH] Test warnings. --- packages/vrzno/test/basic.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/vrzno/test/basic.mjs b/packages/vrzno/test/basic.mjs index 3e49921d..ada7e50c 100644 --- a/packages/vrzno/test/basic.mjs +++ b/packages/vrzno/test/basic.mjs @@ -447,6 +447,8 @@ test('Can get the date from a native object with strtotime() and format it with test('Can use url_fopen with file_get_contents.', async () => { const php = new PhpNode(); + let stdOut = '', stdErr = ''; + php.addEventListener('output', (event) => event.detail.forEach(line => void (stdOut += line))); php.addEventListener('error', (event) => event.detail.forEach(line => void (stdErr += line))); @@ -481,6 +483,8 @@ test('Can get headers from url_fopen with file_get_contents.', async () => { test('Can use url_fopen with file_get_contents with a context.', async () => { const php = new PhpNode(); + let stdOut = '', stdErr = ''; + php.addEventListener('output', (event) => event.detail.forEach(line => void (stdOut += line))); php.addEventListener('error', (event) => event.detail.forEach(line => void (stdErr += line))); @@ -500,6 +504,8 @@ test('Can use url_fopen with file_get_contents with a context.', async () => { test('Can use url_fopen with file_get_contents with a context. (POST) ', async () => { const php = new PhpNode(); + let stdOut = '', stdErr = ''; + php.addEventListener('output', (event) => event.detail.forEach(line => void (stdOut += line))); php.addEventListener('error', (event) => event.detail.forEach(line => void (stdErr += line)));