From 2f15af4ff89fdf98c85f5bd887643661732616ec Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Thu, 1 Apr 2021 20:39:33 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Improved=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpmon-tests/PhpVersionDetectionTest.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/phpmon-tests/PhpVersionDetectionTest.swift b/phpmon-tests/PhpVersionDetectionTest.swift index ea2ec36..660e128 100644 --- a/phpmon-tests/PhpVersionDetectionTest.swift +++ b/phpmon-tests/PhpVersionDetectionTest.swift @@ -2,7 +2,7 @@ // PhpVersionDetectionTest.swift // phpmon-tests // -// Created by Nico Verbruggen on 14/02/2021. +// Created by Nico Verbruggen on 01/04/2021. // Copyright © 2021 Nico Verbruggen. All rights reserved. // @@ -10,7 +10,7 @@ import XCTest class PhpVersionDetectionTest: XCTestCase { - func testCanExtractData() throws { + func testCanDetectValidPhpVersions() throws { let outcome = Actions.extractPhpVersions(from: [ "", // empty lines should be omitted "php@8.0", @@ -18,6 +18,8 @@ class PhpVersionDetectionTest: XCTestCase { "meta-php@8.0", // should be omitted, invalid "php@8.0-coolio", // should be omitted, invalid "php@7.0", + "", + "unrelatedphp@1.0", // should be omitted, invalid "php@5.6", "php@5.4" // should be omitted, not supported ], checkBinaries: false)