mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-08 04:20:07 +02:00
The way .ini files are loaded is changing with this commit. Instead of directly saving which extensions were found, the extensions loaded are now determined by reading the .ini file. However, there are some performance concerns here. Perhaps it is worth *not* reloading the contents of these files unless absolutely necessary.
24 lines
485 B
Swift
24 lines
485 B
Swift
//
|
|
// PhpIniTest.swift
|
|
// PHP Monitor
|
|
//
|
|
// Created by Nico Verbruggen on 04/05/2022.
|
|
// Copyright © 2022 Nico Verbruggen. All rights reserved.
|
|
//
|
|
|
|
import XCTest
|
|
|
|
class PhpIniTest: XCTestCase {
|
|
|
|
static var phpIniFileUrl: URL {
|
|
return Bundle(for: Self.self).url(forResource: "php", withExtension: "ini")!
|
|
}
|
|
|
|
func testCanLoadExtension() throws {
|
|
let iniFile = PhpInitializationFile(fileUrl: Self.phpIniFileUrl)
|
|
|
|
XCTAssertNotNil(iniFile)
|
|
}
|
|
|
|
}
|