1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 20:10:08 +02:00

Begin work on Xdebug mode switcher (#168)

This commit is contained in:
2022-05-01 22:07:18 +02:00
parent af8807f799
commit ef9e0fd916
5 changed files with 79 additions and 1 deletions

View File

@ -68,5 +68,10 @@ class PhpExtensionTest: XCTestCase {
// Make sure if we load the data again, it's disabled
XCTAssertEqual(PhpExtension.load(from: destination).first!.enabled, false)
}
func testCanRetrieveXdebugMode() throws {
let value = Command.execute(path: Paths.php, arguments: ["-r", "echo ini_get('xdebug.mode');"])
XCTAssertEqual(value, "coverage")
}
}