mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
🏗 WIP: Add test for feature to be implemented
This commit is contained in:
30
tests/unit/Parsers/ValetRcTest.swift
Normal file
30
tests/unit/Parsers/ValetRcTest.swift
Normal file
@ -0,0 +1,30 @@
|
||||
//
|
||||
// ValetRcTest.swift
|
||||
// Unit Tests
|
||||
//
|
||||
// Created by Nico Verbruggen on 20/01/2023.
|
||||
// Copyright © 2023 Nico Verbruggen. All rights reserved.
|
||||
//
|
||||
|
||||
import XCTest
|
||||
|
||||
class ValetRcTest: XCTestCase {
|
||||
|
||||
// MARK: - Test Files
|
||||
|
||||
static var path: URL {
|
||||
return Bundle(for: Self.self)
|
||||
.url(forResource: "valetrc", withExtension: "rc")!
|
||||
}
|
||||
|
||||
// MARK: - Tests
|
||||
|
||||
func test_can_extract_fields_from_valetrc_file() throws {
|
||||
// TODO: Load the path and get the fields
|
||||
}
|
||||
|
||||
func test_skip_invalid_fields_valetrc_file() throws {
|
||||
// TODO: Load the path and throw error
|
||||
}
|
||||
|
||||
}
|
3
tests/unit/Test Files/valet/valetrc.rc
Normal file
3
tests/unit/Test Files/valet/valetrc.rc
Normal file
@ -0,0 +1,3 @@
|
||||
PHP=php@8.2
|
||||
OTHER=thing
|
||||
PHPMON_WATCH=true
|
6
tests/unit/Test Files/valet/valetrc_broken.rc
Normal file
6
tests/unit/Test Files/valet/valetrc_broken.rc
Normal file
@ -0,0 +1,6 @@
|
||||
fdsgdfg
|
||||
dgdfg
|
||||
|
||||
PHP=fsdfs
|
||||
|
||||
;PHP=8.2
|
Reference in New Issue
Block a user