Skip to content

Commit 8985cb2

Browse files
authored
Merge pull request #294 from davidcole1340/revert-293-revert-121-feat-integration-tests
Add integration tests & fix bug
2 parents d7cbae5 + e0568aa commit 8985cb2

34 files changed

+621
-208
lines changed

.github/actions/embed/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ ENV PATH=/cargo/bin:/rust/bin:$PATH
1212

1313
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
1414

15-
ENTRYPOINT [ "/cargo/bin/cargo", "test", "--lib", "--release", "--all-features" ]
15+
ENTRYPOINT [ "/cargo/bin/cargo", "test", "--all", "--release", "--all-features", "--no-fail-fast" ]

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
run: cargo build --release --features closure,anyhow --all
9393
# Test & lint
9494
- name: Test inline examples
95-
run: cargo test --release --all --features closure,anyhow
95+
run: cargo test --release --all --features closure,anyhow --no-fail-fast
9696
- name: Run rustfmt
9797
if: matrix.rust == 'stable' && matrix.os == 'ubuntu-latest' && matrix.php == '8.2'
9898
run: cargo fmt --all -- --check

Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ closure = []
4141
embed = []
4242

4343
[workspace]
44-
members = ["crates/macros", "crates/cli"]
44+
members = [
45+
"crates/macros",
46+
"crates/cli",
47+
"tests"
48+
]
4549

4650
[package.metadata.docs.rs]
4751
rustdoc-args = ["--cfg", "docs"]

allowed_bindings.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ bind! {
231231
_ZEND_TYPE_NULLABLE_BIT,
232232
ts_rsrc_id,
233233
_ZEND_TYPE_NAME_BIT,
234+
_ZEND_TYPE_LITERAL_NAME_BIT,
234235
ZEND_INTERNAL_FUNCTION,
235236
ZEND_USER_FUNCTION,
236237
ZEND_EVAL_CODE,
@@ -305,5 +306,6 @@ bind! {
305306
php_module_startup,
306307
php_module_shutdown,
307308
php_request_startup,
308-
php_request_shutdown
309+
php_request_shutdown,
310+
instanceof_function_slow
309311
}

0 commit comments

Comments
 (0)