From 458d269a5bd47c90b271bc20b0f45134babc4c82 Mon Sep 17 00:00:00 2001 From: Dmitry Khomutov Date: Mon, 16 Dec 2019 22:12:17 +0700 Subject: [PATCH 1/2] Fixed Atoum plugin output. --- src/Plugin/Atoum.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Plugin/Atoum.php b/src/Plugin/Atoum.php index e9587c154..d46e8b684 100644 --- a/src/Plugin/Atoum.php +++ b/src/Plugin/Atoum.php @@ -72,12 +72,12 @@ public function execute() $output = $this->builder->getLastOutput(); - if (count(preg_grep("/Success \(/", $output)) == 0) { + if (false === \strpos($output, "Success (")) { $status = false; $this->builder->log($output); } - if (count($output) == 0) { + if (!$output) { $status = false; $this->builder->log('No tests have been performed.'); } From b025042ebdc98c22f94d85b26230929c32970e7b Mon Sep 17 00:00:00 2001 From: Dmitry Khomutov Date: Mon, 16 Dec 2019 22:18:31 +0700 Subject: [PATCH 2/2] Fixed PHP 7.4 name for TravisCI config. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 81c8ff5bb..c28f78057 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,7 +12,7 @@ php: - 7.1 - 7.2 - 7.3 - - 7.4snapshot + - 7.4 matrix: fast_finish: true