export_php:function test_with_constants(int $status): string
(status int64)
| 60 | |
| 61 | // export_php:function test_with_constants(int $status): string |
| 62 | func test_with_constants(status int64) unsafe.Pointer { |
| 63 | var result string |
| 64 | switch status { |
| 65 | case STATUS_PENDING: |
| 66 | result = "pending" |
| 67 | case STATUS_PROCESSING: |
| 68 | result = "processing" |
| 69 | case STATUS_COMPLETED: |
| 70 | result = "completed" |
| 71 | default: |
| 72 | result = "unknown" |
| 73 | } |
| 74 | return frankenphp.PHPString(result, false) |
| 75 | } |
nothing calls this directly
no test coverage detected