From 7e112f85bf01e87fe48e7f26e026795df3065c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michae=CC=88l=20Thieulin?= Date: Mon, 27 Jan 2020 17:54:15 +0100 Subject: [PATCH] Manage to pass a directory in configuration file in simple phpunit --- src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php b/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php index 50873b612aa71..ceb3734f34ebf 100644 --- a/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php +++ b/src/Symfony/Bridge/PhpUnit/bin/simple-phpunit.php @@ -28,6 +28,15 @@ $phpunitConfigFilename = null; if (INF !== $opt && isset($opts[$opt - 1])) { $phpunitConfigFilename = $opts[$opt - 1]; + if (is_dir($phpunitConfigFilename)) { + if (file_exists($phpunitConfigFilename.'/phpunit.xml')) { + $phpunitConfigFilename .= '/phpunit.xml'; + } elseif (file_exists($phpunitConfigFilename.'/phpunit.xml.dist')) { + $phpunitConfigFilename .= '/phpunit.xml.dist'; + } else { + $phpunitConfigFilename = null; + } + } } elseif (file_exists('phpunit.xml')) { $phpunitConfigFilename = 'phpunit.xml'; } elseif (file_exists('phpunit.xml.dist')) { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy