diff --git a/composer.lock b/composer.lock index b4384b69..81d8965e 100644 --- a/composer.lock +++ b/composer.lock @@ -1455,16 +1455,16 @@ }, { "name": "phpunit/phpunit", - "version": "4.8.26", + "version": "4.8.27", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "fc1d8cd5b5de11625979125c5639347896ac2c74" + "reference": "c062dddcb68e44b563f66ee319ddae2b5a322a90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fc1d8cd5b5de11625979125c5639347896ac2c74", - "reference": "fc1d8cd5b5de11625979125c5639347896ac2c74", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c062dddcb68e44b563f66ee319ddae2b5a322a90", + "reference": "c062dddcb68e44b563f66ee319ddae2b5a322a90", "shasum": "" }, "require": { @@ -1523,7 +1523,7 @@ "testing", "xunit" ], - "time": "2016-05-17 03:09:28" + "time": "2016-07-21 06:48:14" }, { "name": "phpunit/phpunit-mock-objects", diff --git a/docs/en/config.md b/docs/en/config.md index 50c41c73..79c02432 100644 --- a/docs/en/config.md +++ b/docs/en/config.md @@ -1,7 +1,7 @@ Adding PHP Censor Support to Your Projects ------------------------------------------ -Similar to Travis CI, to support PHP Censor in your project, you simply need to add a `.php-censor.yml` (`phpci.yml` for backward compatibility with PHPCI) file to the root of +Similar to Travis CI, to support PHP Censor in your project, you simply need to add a `.php-censor.yml` (`phpci.yml`/`.phpci.yml` for backward compatibility with PHPCI) file to the root of your repository. The file should look something like this: ```yml diff --git a/src/PHPCensor/Builder.php b/src/PHPCensor/Builder.php index dba7985c..c46838d5 100644 --- a/src/PHPCensor/Builder.php +++ b/src/PHPCensor/Builder.php @@ -130,7 +130,7 @@ class Builder implements LoggerAwareInterface } /** - * Set the config array, as read from phpci.yml + * Set the config array, as read from .php-censor.yml * @param array|null $config * @throws \Exception */ @@ -144,7 +144,7 @@ class Builder implements LoggerAwareInterface } /** - * Access a variable from the phpci.yml file. + * Access a variable from the .php-censor.yml file. * @param string * @return mixed */ @@ -325,7 +325,7 @@ class Builder implements LoggerAwareInterface throw new \Exception(Lang::get('could_not_create_working')); } - // Does the project's phpci.yml request verbose mode? + // Does the project's .php-censor.yml request verbose mode? if (!isset($this->config['build_settings']['verbose']) || !$this->config['build_settings']['verbose']) { $this->verbose = false; } diff --git a/src/PHPCensor/Languages/lang.da.php b/src/PHPCensor/Languages/lang.da.php index b7d260bd..fbe04ab9 100644 --- a/src/PHPCensor/Languages/lang.da.php +++ b/src/PHPCensor/Languages/lang.da.php @@ -110,7 +110,7 @@ i din foretrukne hosting-platform.', 'project_private_key' => 'Privat nøgle med adgang til dette repository (tom for lokal nøgle og/eller anonym adgang)', 'build_config' => 'PHP Censor build-konfiguration for dette projekt -(hvis du ikke har mulighed for at tilføje en phpci.yml fil i projektets repository)', +(hvis du ikke har mulighed for at tilføje en .php-censor.yml (.phpci.yml|phpci.yml) fil i projektets repository)', 'default_branch' => 'Default branch navn', 'allow_public_status' => 'Tillad offentlig status-side og -billede for dette projekt?', 'archived' => 'Archived', @@ -354,7 +354,7 @@ Kontrollér venligst nedenstående fejl før du fortsætter.', 'marked_as_failed' => 'Build %d blev markeret som fejlet pga. timeout.', // Builder - 'missing_app_yml' => 'Dette projekt har ingen phpci.yml fil, eller filen er tom.', + 'missing_app_yml' => 'Dette projekt har ingen .php-censor.yml (.phpci.yml|phpci.yml) fil, eller filen er tom.', 'build_success' => 'BUILD SUCCES', 'build_failed' => 'BUILD FEJLET', 'removing_build' => 'Fjerner Build', diff --git a/src/PHPCensor/Languages/lang.de.php b/src/PHPCensor/Languages/lang.de.php index 3e60acc5..f08dc06a 100644 --- a/src/PHPCensor/Languages/lang.de.php +++ b/src/PHPCensor/Languages/lang.de.php @@ -112,7 +112,7 @@ generiert. Um es zu verwenden, fügen Sie einfach den folgenden Public Key im Ab 'project_private_key' => 'Private Key für den Zugang zum Repository (leer lassen für lokale und oder anonyme externe Zugriffe)', 'build_config' => 'PHP Censor Buildkonfiguration für dieses Projekt - (falls Sie Ihrem Projektrepository kein phpci.yml hinzufügen können)', + (falls Sie Ihrem Projektrepository kein .php-censor.yml (.phpci.yml|phpci.yml) hinzufügen können)', 'default_branch' => 'Name des Standardbranches', 'allow_public_status' => 'Öffentliche Statusseite und -bild für dieses Projekt einschalten?', 'archived' => 'Archiviert', @@ -377,7 +377,7 @@ generiert. Um es zu verwenden, fügen Sie einfach den folgenden Public Key im Ab 'marked_as_failed' => 'Build %d wegen Zeitüberschreitung als fehlgeschlagen markiert.', // Builder - 'missing_app_yml' => 'Dieses Projekt beinhaltet keine phpci.yml-Datei, oder sie ist leer.', + 'missing_app_yml' => 'Dieses Projekt beinhaltet keine .php-censor.yml (.phpci.yml|phpci.yml)-Datei, oder sie ist leer.', 'build_success' => 'BUILD ERFOLGREICH', 'build_failed' => 'BUILD FEHLGESCHLAGEN', 'removing_build' => 'Entferne Build.', diff --git a/src/PHPCensor/Languages/lang.el.php b/src/PHPCensor/Languages/lang.el.php index e6fb648a..d77268a4 100644 --- a/src/PHPCensor/Languages/lang.el.php +++ b/src/PHPCensor/Languages/lang.el.php @@ -111,7 +111,7 @@ PHP Censor', 'project_private_key' => 'Ιδιωτικό κλειδί για πρόσβαση σε αποθετήριο (αφήστε κενό για την τοπική ή / και ανώνυμα απομακρυσμένα)', 'build_config' => 'Kατασκευή διαμόρφωσης PHP Censor για αυτό το έργο -(αν δεν μπορείτε να προσθέσετε ένα αρχείο phpci.yml στο αποθετήριο έργων)', +(αν δεν μπορείτε να προσθέσετε ένα αρχείο .php-censor.yml (.phpci.yml|phpci.yml) στο αποθετήριο έργων)', 'default_branch' => 'Προκαθορισμένο όνομα διακλάδωσης', 'allow_public_status' => 'Ενεργοποίηση της σελίδας δημόσιας κατάστασης και την εικόνα για το έργο αυτό;', 'archived' => 'Archived', @@ -356,7 +356,7 @@ Services του Bitbucket αποθετηρίου σας.', 'marked_as_failed' => 'Η κατασκεύη %d επισημάνθηκε ως αποτυχημένη λόγω χρονικού ορίου', // Builder - 'missing_app_yml' => 'Το έργο δεν περιέχει το αρχείο phpci.yml ή είναι άδειο.', + 'missing_app_yml' => 'Το έργο δεν περιέχει το αρχείο .php-censor.yml (.phpci.yml|phpci.yml) ή είναι άδειο.', 'build_success' => 'ΚΑΤΑΣΚΕΥΗ ΕΠΙΤΥΧΗΣ', 'build_failed' => 'ΚΑΤΑΣΚΕΥΗ ΑΠΕΤΥΧΕ', 'removing_build' => 'Γίνεται αφαίρεση κατασκευής', diff --git a/src/PHPCensor/Languages/lang.en.php b/src/PHPCensor/Languages/lang.en.php index ef871c03..92bdb05a 100644 --- a/src/PHPCensor/Languages/lang.en.php +++ b/src/PHPCensor/Languages/lang.en.php @@ -113,7 +113,7 @@ PHP Censor', 'project_private_key' => 'Private key to use to access repository (leave blank for local and/or anonymous remotes)', 'build_config' => 'PHP Censor build config for this project - (if you cannot add a phpci.yml file in the project repository)', + (if you cannot add a .php-censor.yml (.phpci.yml|phpci.yml) file in the project repository)', 'default_branch' => 'Default branch name', 'allow_public_status' => 'Enable public status page and image for this project?', 'archived' => 'Archived', @@ -403,7 +403,7 @@ PHP Censor', 'marked_as_failed' => 'Build %d marked as failed due to timeout.', // Builder - 'missing_app_yml' => 'This project does not contain a phpci.yml file, or it is empty.', + 'missing_app_yml' => 'This project does not contain a .php-censor.yml (.phpci.yml|phpci.yml) file, or it is empty.', 'build_success' => 'BUILD SUCCESS', 'build_failed' => 'BUILD FAILED', 'removing_build' => 'Removing Build.', diff --git a/src/PHPCensor/Languages/lang.es.php b/src/PHPCensor/Languages/lang.es.php index 80859aaa..df0032aa 100644 --- a/src/PHPCensor/Languages/lang.es.php +++ b/src/PHPCensor/Languages/lang.es.php @@ -111,7 +111,7 @@ PHP Censor', 'project_private_key' => 'Clave privada a usar para acceder al repositorio (dejar en blanco para remotos locales o anónimos)', 'build_config' => 'Configuración PHP Censor para builds del proyecto - (en caso que no puedas agregar el archivo phpci.yml al repositorio)', + (en caso que no puedas agregar el archivo .php-censor.yml (.phpci.yml|phpci.yml) al repositorio)', 'default_branch' => 'Nombre de la rama por defecto', 'allow_public_status' => '¿Activar página pública con el estado del proyecto?', 'archived' => 'Archivado', @@ -344,7 +344,7 @@ PHP Censor', 'marked_as_failed' => 'Build %d falló debido a timeout.', // Builder - 'missing_app_yml' => 'Este proyecto no contiene el archivo phpci.yml o está vacío.', + 'missing_app_yml' => 'Este proyecto no contiene el archivo .php-censor.yml (.phpci.yml|phpci.yml) o está vacío.', 'build_success' => 'BUILD EXITOSO', 'build_failed' => 'BUILD FALLIDO', 'removing_build' => 'Eliminando Build.', diff --git a/src/PHPCensor/Languages/lang.fr.php b/src/PHPCensor/Languages/lang.fr.php index 7353452a..3ed42f22 100644 --- a/src/PHPCensor/Languages/lang.fr.php +++ b/src/PHPCensor/Languages/lang.fr.php @@ -111,7 +111,7 @@ PHP Censor', 'project_private_key' => 'Clé privée à utiliser pour accéder au dépôt (laissez le champ vide pour les dépôts locaux ou les URLs distantes anonymes)', 'build_config' => 'Configuration PHP Censor spécifique pour ce projet - (si vous ne pouvez pas ajouter de fichier phpci.yml à la racine du dépôt)', + (si vous ne pouvez pas ajouter de fichier .php-censor.yml (.phpci.yml|phpci.yml) à la racine du dépôt)', 'default_branch' => 'Nom de la branche par défaut', 'allow_public_status' => 'Activer la page de statut publique et l\'image pour ce projet ?', 'archived' => 'Archived', @@ -371,7 +371,7 @@ PHP Censor', 'marked_as_failed' => 'Le build %d a été marqué échoué à cause d\'un timeout.', // Builder - 'missing_app_yml' => 'Ce projet ne contient pas de fichier phpci.yml, ou il est vide.', + 'missing_app_yml' => 'Ce projet ne contient pas de fichier .php-censor.yml (.phpci.yml|phpci.yml), ou il est vide.', 'build_success' => 'BUILD RÉUSSI', 'build_failed' => 'BUILD ÉCHOUÉ', 'removing_build' => 'Suppression du build.', diff --git a/src/PHPCensor/Languages/lang.it.php b/src/PHPCensor/Languages/lang.it.php index 5e023c9c..675f1e39 100644 --- a/src/PHPCensor/Languages/lang.it.php +++ b/src/PHPCensor/Languages/lang.it.php @@ -109,7 +109,7 @@ PHP Censor', 'project_private_key' => 'Chiave provata da usare per accedere al repository (lascia vuota per repository locali o remoti con accesso anonimo)', 'build_config' => 'condigurazione della build di PHP Censor per questo progetto - (se non puoi aggiungere il file phpci.yml nel repository di questo progetto)', + (se non puoi aggiungere il file .php-censor.yml (.phpci.yml|phpci.yml) nel repository di questo progetto)', 'default_branch' => 'Nome del branch di default', 'allow_public_status' => 'Vuoi rendere pubblica la pagina dello stato e l\'immagine per questo progetto?', 'archived' => 'Archived', @@ -357,7 +357,7 @@ PHP Censor', 'marked_as_failed' => 'Build %d è stata contrassegnata come fallita per un timeout.', // Builder - 'missing_app_yml' => 'Questo progetto non contiene il file phpci.yml, o il file è vuoto.', + 'missing_app_yml' => 'Questo progetto non contiene il file .php-censor.yml (.phpci.yml|phpci.yml), o il file è vuoto.', 'build_success' => 'BUILD PASSATA', 'build_failed' => 'BUILD FALLITA', 'removing_build' => 'Rimozione build.', diff --git a/src/PHPCensor/Languages/lang.nl.php b/src/PHPCensor/Languages/lang.nl.php index 8dbb584a..56a413e3 100644 --- a/src/PHPCensor/Languages/lang.nl.php +++ b/src/PHPCensor/Languages/lang.nl.php @@ -111,7 +111,7 @@ van je gekozen source code hosting platform', 'project_private_key' => 'Private key voor toegang tot repository (laat leeg voor lokaal en/of anonieme externen)', 'build_config' => 'PHP Censor build configuratie voor dit project -(indien je geen phpci.yml bestand aan de project repository kan toevoegen)', +(indien je geen .php-censor.yml (.phpci.yml|phpci.yml) bestand aan de project repository kan toevoegen)', 'default_branch' => 'Standaard branch naam', 'allow_public_status' => 'Publieke statuspagina en afbeelding beschikbaar maken voor dit project?', 'archived' => 'Archived', @@ -356,7 +356,7 @@ Gelieve de fouten na te kijken vooraleer verder te gaan.', 'marked_as_failed' => 'Build %d gemarkeerd als falende door timeout.', // Builder - 'missing_app_yml' => 'Dit project bevat geen phpci.yml bestand, of het is leeg.', + 'missing_app_yml' => 'Dit project bevat geen .php-censor.yml (.phpci.yml|phpci.yml) bestand, of het is leeg.', 'build_success' => 'BUILD SUCCES', 'build_failed' => 'BUILD GEFAALD', 'removing_build' => 'Build wordt verwijderd.', diff --git a/src/PHPCensor/Languages/lang.pl.php b/src/PHPCensor/Languages/lang.pl.php index 55ec489f..b80025ea 100644 --- a/src/PHPCensor/Languages/lang.pl.php +++ b/src/PHPCensor/Languages/lang.pl.php @@ -112,7 +112,7 @@ od wybranego kodu źródłowego platformy hostingowej.', 'project_private_key' => 'Prywanty klucz dostępu do repozytoriów (pozostaw puste pole dla zdalnych lokalnych i/lub anonimowych)', 'build_config' => 'PHP Censor zbudowało config dla tego projektu -(jeśli nie możesz dodać pliku phpci.yml do repozytorium projektu)', +(jeśli nie możesz dodać pliku .php-censor.yml (.phpci.yml|phpci.yml) do repozytorium projektu)', 'default_branch' => 'Domyślna nazwa gałęzi', 'allow_public_status' => 'Włączyć status publiczny dla tego projektu?', 'archived' => 'W archiwum', @@ -357,7 +357,7 @@ Przejrzyj powyższą listę błędów przed kontynuowaniem.', 'marked_as_failed' => 'Budowanie %d nie powiodło się z powodu przekroczenia limitu czasu.', // Builder - 'missing_app_yml' => 'Projekt nie zawiera pliku phpci.yml lub projekt jest pusty.', + 'missing_app_yml' => 'Projekt nie zawiera pliku .php-censor.yml (.phpci.yml|phpci.yml) lub projekt jest pusty.', 'build_success' => 'BUDOWANIE ZAKOŃCZONE SUKCESEM', 'build_failed' => 'BUDOWANIE NIE POWIODŁO SIĘ', 'removing_build' => 'Usuwanie Budowania.', diff --git a/src/PHPCensor/Languages/lang.ru.php b/src/PHPCensor/Languages/lang.ru.php index eaac1ba3..e0bbf670 100644 --- a/src/PHPCensor/Languages/lang.ru.php +++ b/src/PHPCensor/Languages/lang.ru.php @@ -110,7 +110,7 @@ PHP Censor', 'project_private_key' => 'Приватный ключ для доступа к репозиторию (оставьте поле пустым для локального использования и/или анонимного доступа)', 'build_config' => 'Конфигурация сборки проекта для PHP Censor - (если вы не добавили файл phpci.yml в репозиторий вашего проекта)', + (если вы не добавили файл .php-censor.yml (.phpci.yml|phpci.yml) в репозиторий вашего проекта)', 'default_branch' => 'Ветка по умолчанию', 'allow_public_status' => 'Разрешить публичный статус и изображение (статуса) для проекта', 'archived' => 'Архивный', @@ -389,7 +389,7 @@ PHP Censor', 'marked_as_failed' => 'Сборка %d отмечена как неудавшаяся из-за превышения лимита времени.', // Builder - 'missing_app_yml' => 'Этот проект не содержит файла phpci.yml, или файл пустой.', + 'missing_app_yml' => 'Этот проект не содержит файла .php-censor.yml (.phpci.yml|phpci.yml), или файл пустой.', 'build_success' => 'СБОРКА УСПЕШНА', 'build_failed' => 'СБОРКА ПРОВАЛЕНА', 'removing_build' => 'Удаление сборки.', diff --git a/src/PHPCensor/Languages/lang.uk.php b/src/PHPCensor/Languages/lang.uk.php index 1a8d4168..47b89706 100644 --- a/src/PHPCensor/Languages/lang.uk.php +++ b/src/PHPCensor/Languages/lang.uk.php @@ -110,7 +110,7 @@ PHP Censor', 'project_private_key' => 'Приватний ключ доступу до репозиторія (залишити поле порожнім для локального використання та/або анонімного доступу)', 'build_config' => 'Конфігурація збірки цього проекта для PHP Censor -(якщо ви не додали файл phpci.yml до репозиторію вашого проекту)', +(якщо ви не додали файл .php-censor.yml (.phpci.yml|phpci.yml) до репозиторію вашого проекту)', 'default_branch' => 'Назва гілки за замовчуванням', 'allow_public_status' => 'Увімкнути публічну сторінку статусу та зображення для цього проекта?', 'archived' => 'Архівний', @@ -356,7 +356,7 @@ PHP Censor', 'marked_as_failed' => 'Збірка %d відмічена як невдала через перевищення ліміту часу.', // Builder - 'missing_app_yml' => 'Цей проект не містить файл phpci.yml або він є порожнім.', + 'missing_app_yml' => 'Цей проект не містить файл .php-censor.yml (.phpci.yml|phpci.yml) або він є порожнім.', 'build_success' => 'ЗБІРКА УСПІШНА', 'build_failed' => 'ЗБІРКА НЕВДАЛА', 'removing_build' => 'Видалення збірки.', diff --git a/src/PHPCensor/Model/Build.php b/src/PHPCensor/Model/Build.php index 064300be..345e91ec 100644 --- a/src/PHPCensor/Model/Build.php +++ b/src/PHPCensor/Model/Build.php @@ -104,17 +104,14 @@ class Build extends BuildBase $build_config = $this->getProject()->getBuildConfig(); } - // Try .php-censor.yml if (is_file($buildPath . '/.php-censor.yml')) { $build_config = file_get_contents($buildPath . '/.php-censor.yml'); } - // Try .phpci.yml if (is_file($buildPath . '/.phpci.yml')) { $build_config = file_get_contents($buildPath . '/.phpci.yml'); } - // Try phpci.yml first: if (empty($build_config) && is_file($buildPath . '/phpci.yml')) { $build_config = file_get_contents($buildPath . '/phpci.yml'); } @@ -134,7 +131,7 @@ class Build extends BuildBase } /** - * Get an array of plugins to run if there's no phpci.yml file. + * Get an array of plugins to run if there's no .php-censor.yml file. * @param Builder $builder * @return array */ diff --git a/src/PHPCensor/Model/Build/GithubBuild.php b/src/PHPCensor/Model/Build/GithubBuild.php index 8204267a..2277ade5 100644 --- a/src/PHPCensor/Model/Build/GithubBuild.php +++ b/src/PHPCensor/Model/Build/GithubBuild.php @@ -135,7 +135,7 @@ class GithubBuild extends RemoteGitBuild /** * Get a template to use for generating links to files. - * e.g. https://github.com/block8/phpci/blob/master/{FILE}#L{LINE} + * * @return string */ public function getFileLinkTemplate() diff --git a/tests/PHPCensor/Command/InstallCommandTest.php b/tests/PHPCensor/Command/InstallCommandTest.php index 56dae8b7..33995146 100644 --- a/tests/PHPCensor/Command/InstallCommandTest.php +++ b/tests/PHPCensor/Command/InstallCommandTest.php @@ -98,13 +98,13 @@ class InstallCommandTest extends \PHPUnit_Framework_TestCase { $config = [ '--db-host' => 'localhost', - '--db-name' => 'phpci1', - '--db-user' => 'phpci2', - '--db-pass' => 'phpci3', - '--admin-mail' => 'phpci@phpci.test', - '--admin-name' => 'phpci4', - '--admin-pass' => 'phpci5', - '--url' => 'http://test.phpci.org', + '--db-name' => 'php-censor-db', + '--db-user' => 'php-censor-user', + '--db-pass' => 'php-censor-password', + '--admin-mail' => 'admin@php-censor.local', + '--admin-name' => 'admin', + '--admin-pass' => 'admin-password', + '--url' => 'http://php-censor.local', '--queue-disabled' => null, ]; @@ -232,14 +232,14 @@ class InstallCommandTest extends \PHPUnit_Framework_TestCase // We specified an input value for hostname. $dialog->expects($this->never())->method('ask'); $dialog->expects($this->never())->method('askConfirmation'); - $dialog->expects($this->once())->method('askAndValidate')->willReturn('test@phpci.com'); + $dialog->expects($this->once())->method('askAndValidate')->willReturn('admin@php-censor.local'); $dialog->expects($this->never())->method('askHiddenResponse'); $dialog->expects($this->never())->method('askHiddenResponseAndValidate'); $this->executeWithoutParam('--admin-mail', $dialog); // Check that specified arguments are correctly loaded. - $this->assertEquals('test@phpci.com', $this->admin['mail']); + $this->assertEquals('admin@php-censor.local', $this->admin['mail']); } public function testAdminNameConfig() diff --git a/tests/PHPCensor/Helper/BuildInterpolatorTest.php b/tests/PHPCensor/Helper/BuildInterpolatorTest.php index 36025daa..1b54832f 100644 --- a/tests/PHPCensor/Helper/BuildInterpolatorTest.php +++ b/tests/PHPCensor/Helper/BuildInterpolatorTest.php @@ -39,13 +39,13 @@ class BuildInterpolatorTest extends \PHPUnit_Framework_TestCase { $build = $this->prophesize('PHPCensor\\Model\\Build')->reveal(); - $string = "Hello World"; + $string = "Hello World"; $expectedOutput = "Hello World"; $this->testedInterpolator->setupInterpolationVars( $build, "/buildpath/", - "phpci.com" + "php-censor.local" ); $actualOutput = $this->testedInterpolator->interpolate($string); diff --git a/tests/PHPCensor/Helper/MailerFactoryTest.php b/tests/PHPCensor/Helper/MailerFactoryTest.php index b45e6707..4178e826 100644 --- a/tests/PHPCensor/Helper/MailerFactoryTest.php +++ b/tests/PHPCensor/Helper/MailerFactoryTest.php @@ -31,9 +31,9 @@ class MailerFactoryTest extends \PHPUnit_Framework_TestCase 'smtp_address' => 'mail.example.com', 'smtp_port' => 225, 'smtp_encryption' => true, - 'smtp_username' => 'example.user', - 'smtp_password' => 'examplepassword', - 'default_mailto_address' => 'phpci@example.com', + 'smtp_username' => 'php-censor-user', + 'smtp_password' => 'php-censor-password', + 'default_mailto_address' => 'admin@php-censor.local', ]; $factory = new MailerFactory(['email_settings' => $config]); @@ -55,9 +55,9 @@ class MailerFactoryTest extends \PHPUnit_Framework_TestCase 'smtp_address' => 'mail.example.com', 'smtp_port' => 225, 'smtp_encryption' => true, - 'smtp_username' => 'example.user', - 'smtp_password' => 'examplepassword', - 'default_mailto_address' => 'phpci@example.com', + 'smtp_username' => 'php-censor-user', + 'smtp_password' => 'php-censor-password', + 'default_mailto_address' => 'admin@php-censor.local', ]; $factory = new MailerFactory(['email_settings' => $config]); diff --git a/tests/PHPCensor/Service/BuiltStatusServiceTest.php b/tests/PHPCensor/Service/BuiltStatusServiceTest.php index 25e749fe..66f8c1c9 100644 --- a/tests/PHPCensor/Service/BuiltStatusServiceTest.php +++ b/tests/PHPCensor/Service/BuiltStatusServiceTest.php @@ -144,7 +144,7 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase { $build = $this->getBuild($buildConfigId); $service = new BuildStatusService(self::BRANCH, $this->project, $build); - $service->setUrl('http://phpci.dev/'); + $service->setUrl('http://php-censor.local/'); $this->assertEquals($expectedResult, $service->toArray()); } @@ -159,7 +159,7 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase 'lastBuildLabel' => '', 'lastBuildStatus' => '', 'lastBuildTime' => '', - 'webUrl' => 'http://phpci.dev/build/view/77', + 'webUrl' => 'http://php-censor.local/build/view/77', ) ), 'buildingStatusWithPrev' => array( @@ -170,7 +170,7 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase 'lastBuildLabel' => 13, 'lastBuildStatus' => 'Failure', 'lastBuildTime' => '2014-10-13T13:13:13+0000', - 'webUrl' => 'http://phpci.dev/build/view/78', + 'webUrl' => 'http://php-censor.local/build/view/78', ) ), 'successStatus' => array( @@ -181,7 +181,7 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase 'lastBuildLabel' => 7, 'lastBuildStatus' => 'Success', 'lastBuildTime' => '2014-10-25T21:50:02+0000', - 'webUrl' => 'http://phpci.dev/build/view/7', + 'webUrl' => 'http://php-censor.local/build/view/7', ) ), 'failureStatus' => array( @@ -192,7 +192,7 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase 'lastBuildLabel' => 13, 'lastBuildStatus' => 'Failure', 'lastBuildTime' => '2014-10-13T13:13:13+0000', - 'webUrl' => 'http://phpci.dev/build/view/13', + 'webUrl' => 'http://php-censor.local/build/view/13', ) ), 'pending' => array( @@ -203,7 +203,7 @@ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase 'lastBuildLabel' => 7, 'lastBuildStatus' => 'Success', 'lastBuildTime' => '2014-10-25T21:50:02+0000', - 'webUrl' => 'http://phpci.dev/build/view/1000', + 'webUrl' => 'http://php-censor.local/build/view/1000', ) ), );