Skip to content

Commit

Permalink
Fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmorris committed Dec 5, 2024
1 parent ca944af commit 5aebd1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/basic.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ test('Can refresh memory between executions', async () => {
await php.run(`<?php $i = 100;`);
await php.run(`<?php $i++;`);
await php.refresh();
await php.run(`<?php ini_set('display_errors', 1); error_reporting(E_ALL | E_STRICT); echo $i . PHP_EOL;`);
await php.run(`<?php ini_set('display_errors', 1); @error_reporting(E_ALL | E_STRICT); echo $i . PHP_EOL;`);

assert.equal(stdOut, `\nWarning: Undefined variable $i in php-wasm run script on line 1\n\n`);
assert.equal(stdErr, '');
Expand Down

0 comments on commit 5aebd1e

Please sign in to comment.