Skip to content

Commit ebe57cc

Browse files
committed
test(sapi): use builder pattern in sapi test
1 parent 1b5a214 commit ebe57cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/module.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ pub fn hello_world(name: String) -> String {
3838

3939
#[php_module]
4040
pub fn module(module: ModuleBuilder) -> ModuleBuilder {
41-
module
41+
module.function(wrap_function!(hello_world))
4242
}

tests/sapi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ pub fn hello_world(name: String) -> String {
9494

9595
#[php_module]
9696
pub fn module(module: ModuleBuilder) -> ModuleBuilder {
97-
module
97+
module.function(wrap_function!(hello_world))
9898
}

0 commit comments

Comments
 (0)