aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/src/SpecTestsuites/Core/TableSubTest.php
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-04-28 11:02:51 +0900
committernsfisis <nsfisis@gmail.com>2024-04-28 17:38:19 +0900
commit88a77bc5846541e5d6009bc103da378650a649f3 (patch)
treeef4d3a57cc16bf230c3ac25068001f747e45b35e /tests/src/SpecTestsuites/Core/TableSubTest.php
parentc809cd661bba388d531f24c2ac578fbe6594f45c (diff)
downloadphp-waddiwasi-88a77bc5846541e5d6009bc103da378650a649f3.tar.gz
php-waddiwasi-88a77bc5846541e5d6009bc103da378650a649f3.tar.zst
php-waddiwasi-88a77bc5846541e5d6009bc103da378650a649f3.zip
test: generate PHPUnit classes from WAST files
Diffstat (limited to 'tests/src/SpecTestsuites/Core/TableSubTest.php')
-rw-r--r--tests/src/SpecTestsuites/Core/TableSubTest.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/src/SpecTestsuites/Core/TableSubTest.php b/tests/src/SpecTestsuites/Core/TableSubTest.php
new file mode 100644
index 0000000..40c87f6
--- /dev/null
+++ b/tests/src/SpecTestsuites/Core/TableSubTest.php
@@ -0,0 +1,30 @@
+<?php
+
+declare(strict_types=1);
+
+namespace Nsfisis\Waddiwasi\Tests\SpecTestsuites\Core;
+
+use Nsfisis\Waddiwasi\Tests\SpecTestsuites\SpecTestsuiteBase;
+use PHPUnit\Framework\Attributes\Depends;
+
+final class TableSubTest extends SpecTestsuiteBase
+{
+ public function testAssertInvalid0(): void
+ {
+ $this->runAssertInvalidCommand(
+ filename: 'table-sub.0.wasm',
+ text: 'type mismatch',
+ line: 2,
+ );
+ }
+
+ #[Depends('testAssertInvalid0')]
+ public function testAssertInvalid1(): void
+ {
+ $this->runAssertInvalidCommand(
+ filename: 'table-sub.1.wasm',
+ text: 'type mismatch',
+ line: 13,
+ );
+ }
+}