//
//  CommandTest.swift
//  PHP Monitor
//
//  Created by Nico Verbruggen on 13/02/2021.
//  Copyright © 2023 Nico Verbruggen. All rights reserved.
//

import XCTest

class CommandTest: XCTestCase {

    func test_determine_php_version() {
        let version = Command.execute(
            path: Paths.php,
            arguments: ["-v"],
            trimNewlines: false
        )

        XCTAssert(version.contains("(cli)"))
        XCTAssert(version.contains("NTS"))
        XCTAssert(version.contains("built"))
        XCTAssert(version.contains("Zend"))
    }

}
