Skip to content

Commit

Permalink
Test warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmorris committed Dec 5, 2024
1 parent 4920233 commit aae9534
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/vrzno/test/basic.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));

Expand Down Expand Up @@ -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)));

Expand All @@ -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)));

Expand Down

0 comments on commit aae9534

Please sign in to comment.