Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

Commit 5395cce

Browse files
authored
Travis - handle PHP 5 after changes in Composer (#20)
1 parent 9e2a6ed commit 5395cce

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

run-tests.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ echo -e "\e[46m§ Trying to execute tests under PHPUnit ${PHPUNIT}.\e[0m"
1515
rm -f composer.lock
1616

1717
echo -e "\n\e[46m§ Installing deps...\e[0m"
18-
composer require -q --dev --no-update phpunit/phpunit:${PHPUNIT}
19-
composer update -q $DEFAULT_COMPOSER_FLAGS && INSTALLED=1 || INSTALLED=0
18+
composer require -q --dev --no-update phpunit/phpunit:${PHPUNIT} && composer update -q $DEFAULT_COMPOSER_FLAGS && INSTALLED=1 || INSTALLED=0
2019
git checkout composer.json
2120

2221
if [ $INSTALLED == 0 ]

src/Reporter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static function useHeader($use)
5757
public static function report($issue)
5858
{
5959
if (self::$useHeader) {
60-
$issue = "PHPUnit good practice has been abused.\n$issue";
60+
$issue = "PHPUnit good practice has been violated.\n$issue";
6161
}
6262

6363
$reporter = self::$customReporter ? self::$customReporter : self::getDefaultReporter();

tests/ReporterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function tearDown()
3232

3333
public function testReportWithDefaults()
3434
{
35-
$expectedMessage = "PHPUnit good practice has been abused.\nFoo.";
35+
$expectedMessage = "PHPUnit good practice has been violated.\nFoo.";
3636

3737
if (is_callable([$this, 'expectException'])) {
3838
$this->expectException(Warning::class);

0 commit comments

Comments
 (0)