diff --git a/app/loggerconfig.example.php b/app/loggerconfig.example.php index 733856b1..df4e30d4 100644 --- a/app/loggerconfig.example.php +++ b/app/loggerconfig.example.php @@ -1,13 +1,5 @@ function() { diff --git a/bin/console b/bin/console index 438ad5b9..591f7fd4 100755 --- a/bin/console +++ b/bin/console @@ -1,14 +1,6 @@ #!/usr/bin/env php -*/ + * PHPCI Front Controller + * + * @author Dan Cryer + */ class Application extends b8\Application { /** diff --git a/src/PHPCensor/BuildFactory.php b/src/PHPCensor/BuildFactory.php index 8d427c8c..e6d54c56 100644 --- a/src/PHPCensor/BuildFactory.php +++ b/src/PHPCensor/BuildFactory.php @@ -1,11 +1,4 @@ -*/ + * PHPCI Build Factory - Takes in a generic "Build" and returns a type-specific build model. + * + * @author Dan Cryer + */ class BuildFactory { /** diff --git a/src/PHPCensor/Builder.php b/src/PHPCensor/Builder.php index 001d0126..dd8e6593 100644 --- a/src/PHPCensor/Builder.php +++ b/src/PHPCensor/Builder.php @@ -1,17 +1,8 @@ + * + * @author Dan Cryer */ class Builder implements LoggerAwareInterface { diff --git a/src/PHPCensor/Controller.php b/src/PHPCensor/Controller.php index 2b6f508b..c0335893 100644 --- a/src/PHPCensor/Controller.php +++ b/src/PHPCensor/Controller.php @@ -1,11 +1,4 @@ -* @package PHPCI -* @subpackage Web -*/ + * Build Controller - Allows users to run and view builds. + * + * @author Dan Cryer + */ class BuildController extends Controller { /** diff --git a/src/PHPCensor/Controller/BuildStatusController.php b/src/PHPCensor/Controller/BuildStatusController.php index 8b4e4a6e..63e1d6c7 100644 --- a/src/PHPCensor/Controller/BuildStatusController.php +++ b/src/PHPCensor/Controller/BuildStatusController.php @@ -1,13 +1,5 @@ -* @package PHPCI -* @subpackage Web -*/ + * Build Status Controller - Allows external access to build status information / images. + * + * @author Dan Cryer + */ class BuildStatusController extends Controller { /* @var \PHPCensor\Store\ProjectStore */ protected $projectStore; + /* @var \PHPCensor\Store\BuildStore */ protected $buildStore; diff --git a/src/PHPCensor/Controller/GroupController.php b/src/PHPCensor/Controller/GroupController.php index a687f112..cce9361f 100644 --- a/src/PHPCensor/Controller/GroupController.php +++ b/src/PHPCensor/Controller/GroupController.php @@ -1,27 +1,17 @@ - * @package PHPCI - * @subpackage Web + * + * @author Dan Cryer */ class GroupController extends Controller { diff --git a/src/PHPCensor/Controller/HomeController.php b/src/PHPCensor/Controller/HomeController.php index 389294b0..1187eb1b 100644 --- a/src/PHPCensor/Controller/HomeController.php +++ b/src/PHPCensor/Controller/HomeController.php @@ -1,13 +1,5 @@ -* @package PHPCI -* @subpackage Web -*/ + * Home Controller - Displays the PHPCI Dashboard. + * + * @author Dan Cryer + */ class HomeController extends Controller { /** diff --git a/src/PHPCensor/Controller/ProjectController.php b/src/PHPCensor/Controller/ProjectController.php index bb17db0c..c8de3b71 100644 --- a/src/PHPCensor/Controller/ProjectController.php +++ b/src/PHPCensor/Controller/ProjectController.php @@ -1,13 +1,5 @@ -* @package PHPCI -* @subpackage Web -*/ + * Project Controller - Allows users to create, edit and view projects. + * + * @author Dan Cryer + */ class ProjectController extends PHPCensor\Controller { /** diff --git a/src/PHPCensor/Controller/SessionController.php b/src/PHPCensor/Controller/SessionController.php index 6449ada6..354e04f0 100644 --- a/src/PHPCensor/Controller/SessionController.php +++ b/src/PHPCensor/Controller/SessionController.php @@ -1,13 +1,5 @@ -* @package PHPCI -* @subpackage Web -*/ + * @author Dan Cryer + */ class SessionController extends Controller { /** diff --git a/src/PHPCensor/Controller/UserController.php b/src/PHPCensor/Controller/UserController.php index e9a95948..551a65d9 100644 --- a/src/PHPCensor/Controller/UserController.php +++ b/src/PHPCensor/Controller/UserController.php @@ -1,11 +1,4 @@ -* @package PHPCI -* @subpackage Web -*/ + * User Controller - Allows an administrator to view, add, edit and delete users. + * + * @author Dan Cryer + */ class UserController extends Controller { /** diff --git a/src/PHPCensor/Helper/AnsiConverter.php b/src/PHPCensor/Helper/AnsiConverter.php index 642984b5..709801e2 100644 --- a/src/PHPCensor/Helper/AnsiConverter.php +++ b/src/PHPCensor/Helper/AnsiConverter.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Web + * + * @author Dan Cryer */ class Build { diff --git a/src/PHPCensor/Helper/BuildInterpolator.php b/src/PHPCensor/Helper/BuildInterpolator.php index e8102447..038715c4 100644 --- a/src/PHPCensor/Helper/BuildInterpolator.php +++ b/src/PHPCensor/Helper/BuildInterpolator.php @@ -1,11 +1,4 @@ -* @package PHPCI -* @subpackage Web -*/ + * Login Is Disabled Helper - Checks if login is disabled in the view + * + * @author Stephen Ball + */ class LoginIsDisabled { /** diff --git a/src/PHPCensor/Helper/MailerFactory.php b/src/PHPCensor/Helper/MailerFactory.php index efdca123..c6910b07 100644 --- a/src/PHPCensor/Helper/MailerFactory.php +++ b/src/PHPCensor/Helper/MailerFactory.php @@ -1,17 +1,9 @@ -* @package PHPCI -* @subpackage Web -*/ + * User Helper - Provides access to logged in user information in views. + * + * @author Dan Cryer + */ class User { /** diff --git a/src/PHPCensor/Languages/lang.da.php b/src/PHPCensor/Languages/lang.da.php index 16c9d79e..dfea758a 100644 --- a/src/PHPCensor/Languages/lang.da.php +++ b/src/PHPCensor/Languages/lang.da.php @@ -1,11 +1,4 @@ 'Dansk', diff --git a/src/PHPCensor/Languages/lang.de.php b/src/PHPCensor/Languages/lang.de.php index 0d0d58e6..270bfbe1 100644 --- a/src/PHPCensor/Languages/lang.de.php +++ b/src/PHPCensor/Languages/lang.de.php @@ -1,11 +1,4 @@ 'Deutsch', diff --git a/src/PHPCensor/Languages/lang.el.php b/src/PHPCensor/Languages/lang.el.php index a325e311..c798cd78 100644 --- a/src/PHPCensor/Languages/lang.el.php +++ b/src/PHPCensor/Languages/lang.el.php @@ -1,11 +1,4 @@ 'Ελληνικά', diff --git a/src/PHPCensor/Languages/lang.en.php b/src/PHPCensor/Languages/lang.en.php index e54c11a4..efdbbb51 100644 --- a/src/PHPCensor/Languages/lang.en.php +++ b/src/PHPCensor/Languages/lang.en.php @@ -1,11 +1,4 @@ 'English', diff --git a/src/PHPCensor/Languages/lang.es.php b/src/PHPCensor/Languages/lang.es.php index fc90e175..20a22b54 100644 --- a/src/PHPCensor/Languages/lang.es.php +++ b/src/PHPCensor/Languages/lang.es.php @@ -1,11 +1,4 @@ 'Español', diff --git a/src/PHPCensor/Languages/lang.fr.php b/src/PHPCensor/Languages/lang.fr.php index bbd20421..ff52e0a3 100644 --- a/src/PHPCensor/Languages/lang.fr.php +++ b/src/PHPCensor/Languages/lang.fr.php @@ -1,11 +1,4 @@ 'Français', diff --git a/src/PHPCensor/Languages/lang.it.php b/src/PHPCensor/Languages/lang.it.php index 67568c43..e11ab293 100644 --- a/src/PHPCensor/Languages/lang.it.php +++ b/src/PHPCensor/Languages/lang.it.php @@ -1,11 +1,4 @@ 'Italiano', diff --git a/src/PHPCensor/Languages/lang.nl.php b/src/PHPCensor/Languages/lang.nl.php index c18be985..d602a9d5 100644 --- a/src/PHPCensor/Languages/lang.nl.php +++ b/src/PHPCensor/Languages/lang.nl.php @@ -1,11 +1,4 @@ 'Nederlands', diff --git a/src/PHPCensor/Languages/lang.pl.php b/src/PHPCensor/Languages/lang.pl.php index 0dc21564..f492cc41 100644 --- a/src/PHPCensor/Languages/lang.pl.php +++ b/src/PHPCensor/Languages/lang.pl.php @@ -1,11 +1,4 @@ 'Polski', diff --git a/src/PHPCensor/Languages/lang.pt-br.php b/src/PHPCensor/Languages/lang.pt-br.php index a5b98013..c28eb228 100644 --- a/src/PHPCensor/Languages/lang.pt-br.php +++ b/src/PHPCensor/Languages/lang.pt-br.php @@ -1,11 +1,4 @@ 'Português Brasil', diff --git a/src/PHPCensor/Languages/lang.ru.php b/src/PHPCensor/Languages/lang.ru.php index 9a1cad9a..b52529cc 100644 --- a/src/PHPCensor/Languages/lang.ru.php +++ b/src/PHPCensor/Languages/lang.ru.php @@ -1,11 +1,4 @@ 'Pусский', diff --git a/src/PHPCensor/Languages/lang.uk.php b/src/PHPCensor/Languages/lang.uk.php index 7767470d..def1391a 100644 --- a/src/PHPCensor/Languages/lang.uk.php +++ b/src/PHPCensor/Languages/lang.uk.php @@ -1,11 +1,4 @@ 'Українська', diff --git a/src/PHPCensor/Languages/lang.zh.php b/src/PHPCensor/Languages/lang.zh.php index de37f9db..fc96b005 100644 --- a/src/PHPCensor/Languages/lang.zh.php +++ b/src/PHPCensor/Languages/lang.zh.php @@ -1,11 +1,4 @@ '简体中文', diff --git a/src/PHPCensor/Logging/BuildDBLogHandler.php b/src/PHPCensor/Logging/BuildDBLogHandler.php index 387aa486..50789c4d 100644 --- a/src/PHPCensor/Logging/BuildDBLogHandler.php +++ b/src/PHPCensor/Logging/BuildDBLogHandler.php @@ -1,11 +1,4 @@ currentBuildPath)) { $buildDirectory = $this->getId() . '_' . substr(md5(microtime(true)), 0, 5); - $this->currentBuildPath = RUNTIME_DIR . 'builds' . DIRECTORY_SEPARATOR . $buildDirectory . DIRECTORY_SEPARATOR; + $this->currentBuildPath = + RUNTIME_DIR . + 'builds' . + DIRECTORY_SEPARATOR . + $buildDirectory . + DIRECTORY_SEPARATOR; } return $this->currentBuildPath; @@ -880,10 +885,10 @@ class Build extends Model /** * Create a working copy by cloning, copying, or similar. - * + * * @param Builder $builder * @param string $buildPath - * + * * @return boolean */ public function createWorkingCopy(Builder $builder, $buildPath) diff --git a/src/PHPCensor/Plugin.php b/src/PHPCensor/Plugin.php index 0c5c9d0a..4b3088d3 100644 --- a/src/PHPCensor/Plugin.php +++ b/src/PHPCensor/Plugin.php @@ -1,21 +1,14 @@ -*/ + * @author Dan Cryer + */ abstract class Plugin { /** diff --git a/src/PHPCensor/Plugin/Atoum.php b/src/PHPCensor/Plugin/Atoum.php index 92056591..07029a15 100644 --- a/src/PHPCensor/Plugin/Atoum.php +++ b/src/PHPCensor/Plugin/Atoum.php @@ -1,29 +1,34 @@ args !== null) { $cmd .= " {$this->args}"; } + if ($this->config !== null) { $cmd .= " -c '{$this->config}'"; } + if ($this->directory !== null) { $dirPath = $this->builder->buildPath . DIRECTORY_SEPARATOR . $this->directory; $cmd .= " -d '{$dirPath}'"; } + chdir($this->builder->buildPath); + $output = ''; $status = true; + exec($cmd, $output); if (count(preg_grep("/Success \(/", $output)) == 0) { $status = false; $this->builder->log($output); } + if (count($output) == 0) { $status = false; $this->builder->log('No tests have been performed.'); } - + return $status; } } diff --git a/src/PHPCensor/Plugin/Behat.php b/src/PHPCensor/Plugin/Behat.php index dc0563b5..ed5c15db 100644 --- a/src/PHPCensor/Plugin/Behat.php +++ b/src/PHPCensor/Plugin/Behat.php @@ -1,16 +1,8 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class Behat extends Plugin { diff --git a/src/PHPCensor/Plugin/Campfire.php b/src/PHPCensor/Plugin/Campfire.php index d59441d7..d17d110e 100644 --- a/src/PHPCensor/Plugin/Campfire.php +++ b/src/PHPCensor/Plugin/Campfire.php @@ -1,26 +1,15 @@ - * @package PHPCI - * @subpackage Plugins + * @author André Cianfarani */ class Campfire extends Plugin { diff --git a/src/PHPCensor/Plugin/CleanBuild.php b/src/PHPCensor/Plugin/CleanBuild.php index 30c33616..375b96dd 100644 --- a/src/PHPCensor/Plugin/CleanBuild.php +++ b/src/PHPCensor/Plugin/CleanBuild.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class CleanBuild extends Plugin { diff --git a/src/PHPCensor/Plugin/Codeception.php b/src/PHPCensor/Plugin/Codeception.php index 35121b1d..402fc887 100644 --- a/src/PHPCensor/Plugin/Codeception.php +++ b/src/PHPCensor/Plugin/Codeception.php @@ -1,11 +1,4 @@ - * @author Igor Timoshenko - * @author Adam Cooper - * @package PHPCI - * @subpackage Plugins + * @author Don Gilbert + * @author Igor Timoshenko + * @author Adam Cooper */ class Codeception extends Plugin implements ZeroConfigPluginInterface { diff --git a/src/PHPCensor/Plugin/Composer.php b/src/PHPCensor/Plugin/Composer.php index 1d34fdc6..25b95958 100644 --- a/src/PHPCensor/Plugin/Composer.php +++ b/src/PHPCensor/Plugin/Composer.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class Composer extends Plugin implements ZeroConfigPluginInterface { diff --git a/src/PHPCensor/Plugin/CopyBuild.php b/src/PHPCensor/Plugin/CopyBuild.php index 1766b006..1c2a28c2 100644 --- a/src/PHPCensor/Plugin/CopyBuild.php +++ b/src/PHPCensor/Plugin/CopyBuild.php @@ -1,25 +1,15 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class CopyBuild extends Plugin { diff --git a/src/PHPCensor/Plugin/Deployer.php b/src/PHPCensor/Plugin/Deployer.php index 93d47699..e03c4ae4 100644 --- a/src/PHPCensor/Plugin/Deployer.php +++ b/src/PHPCensor/Plugin/Deployer.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class Deployer extends Plugin { diff --git a/src/PHPCensor/Plugin/Email.php b/src/PHPCensor/Plugin/Email.php index 39e804ae..0c0580dd 100644 --- a/src/PHPCensor/Plugin/Email.php +++ b/src/PHPCensor/Plugin/Email.php @@ -1,16 +1,8 @@ - * @package PHPCI - * @subpackage Plugins + * @author Steve Brazier */ class Email extends Plugin { diff --git a/src/PHPCensor/Plugin/Env.php b/src/PHPCensor/Plugin/Env.php index b666b311..cec07038 100644 --- a/src/PHPCensor/Plugin/Env.php +++ b/src/PHPCensor/Plugin/Env.php @@ -1,23 +1,13 @@ - * @package PHPCI - * @subpackage Plugins + * @author Steve Kamerman */ class Env extends Plugin { diff --git a/src/PHPCensor/Plugin/FlowdockNotify.php b/src/PHPCensor/Plugin/FlowdockNotify.php index d00fd52b..a8d267e1 100644 --- a/src/PHPCensor/Plugin/FlowdockNotify.php +++ b/src/PHPCensor/Plugin/FlowdockNotify.php @@ -1,10 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class Git extends Plugin { diff --git a/src/PHPCensor/Plugin/Grunt.php b/src/PHPCensor/Plugin/Grunt.php index 6810a614..95173f50 100644 --- a/src/PHPCensor/Plugin/Grunt.php +++ b/src/PHPCensor/Plugin/Grunt.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Tobias Tom */ class Grunt extends Plugin { diff --git a/src/PHPCensor/Plugin/Gulp.php b/src/PHPCensor/Plugin/Gulp.php index adb88c2f..bc0c37cf 100644 --- a/src/PHPCensor/Plugin/Gulp.php +++ b/src/PHPCensor/Plugin/Gulp.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dirk Heilig */ class Gulp extends Plugin { diff --git a/src/PHPCensor/Plugin/HipchatNotify.php b/src/PHPCensor/Plugin/HipchatNotify.php index db3fb791..9b2cb710 100644 --- a/src/PHPCensor/Plugin/HipchatNotify.php +++ b/src/PHPCensor/Plugin/HipchatNotify.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author James Inman */ class HipchatNotify extends Plugin { diff --git a/src/PHPCensor/Plugin/Irc.php b/src/PHPCensor/Plugin/Irc.php index a618bb06..528b815b 100644 --- a/src/PHPCensor/Plugin/Irc.php +++ b/src/PHPCensor/Plugin/Irc.php @@ -1,25 +1,15 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class Irc extends Plugin { diff --git a/src/PHPCensor/Plugin/Lint.php b/src/PHPCensor/Plugin/Lint.php index 2e68b5f1..4c462d7b 100644 --- a/src/PHPCensor/Plugin/Lint.php +++ b/src/PHPCensor/Plugin/Lint.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class Lint extends Plugin { diff --git a/src/PHPCensor/Plugin/Mysql.php b/src/PHPCensor/Plugin/Mysql.php index ff8b3681..0005b27a 100644 --- a/src/PHPCensor/Plugin/Mysql.php +++ b/src/PHPCensor/Plugin/Mysql.php @@ -1,17 +1,9 @@ - * @author Steve Kamerman - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer + * @author Steve Kamerman */ class Mysql extends Plugin { diff --git a/src/PHPCensor/Plugin/Option/PhpUnitOptions.php b/src/PHPCensor/Plugin/Option/PhpUnitOptions.php index ea91d3ea..bb7cf6dc 100644 --- a/src/PHPCensor/Plugin/Option/PhpUnitOptions.php +++ b/src/PHPCensor/Plugin/Option/PhpUnitOptions.php @@ -1,21 +1,11 @@ - * @package PHPCI - * @subpackage Plugin + * @author Pablo Tejada */ class PhpUnitOptions { diff --git a/src/PHPCensor/Plugin/PackageBuild.php b/src/PHPCensor/Plugin/PackageBuild.php index abeecc10..aa37cf6e 100644 --- a/src/PHPCensor/Plugin/PackageBuild.php +++ b/src/PHPCensor/Plugin/PackageBuild.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class PackageBuild extends Plugin { diff --git a/src/PHPCensor/Plugin/Pdepend.php b/src/PHPCensor/Plugin/Pdepend.php index 40a6066a..02ee87a6 100644 --- a/src/PHPCensor/Plugin/Pdepend.php +++ b/src/PHPCensor/Plugin/Pdepend.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Johan van der Heide */ class Pdepend extends Plugin { diff --git a/src/PHPCensor/Plugin/Pgsql.php b/src/PHPCensor/Plugin/Pgsql.php index 968918b2..319d746c 100644 --- a/src/PHPCensor/Plugin/Pgsql.php +++ b/src/PHPCensor/Plugin/Pgsql.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class Pgsql extends Plugin { diff --git a/src/PHPCensor/Plugin/Phar.php b/src/PHPCensor/Plugin/Phar.php index 790924aa..b43b95ec 100644 --- a/src/PHPCensor/Plugin/Phar.php +++ b/src/PHPCensor/Plugin/Phar.php @@ -3,7 +3,6 @@ namespace PHPCensor\Plugin; use PHPCensor\Builder; -use PHPCensor\Helper\Lang; use PHPCensor\Model\Build; use Phar as PHPPhar; use PHPCensor\Plugin; diff --git a/src/PHPCensor/Plugin/Phing.php b/src/PHPCensor/Plugin/Phing.php index aab8c916..a1f761af 100644 --- a/src/PHPCensor/Plugin/Phing.php +++ b/src/PHPCensor/Plugin/Phing.php @@ -1,25 +1,15 @@ - * @package PHPCI - * @subpackage Plugins + * @author Pavel Pavlov */ class Phing extends Plugin { diff --git a/src/PHPCensor/Plugin/PhpCodeSniffer.php b/src/PHPCensor/Plugin/PhpCodeSniffer.php index 53699c42..b14506c2 100644 --- a/src/PHPCensor/Plugin/PhpCodeSniffer.php +++ b/src/PHPCensor/Plugin/PhpCodeSniffer.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class PhpCodeSniffer extends Plugin implements ZeroConfigPluginInterface { diff --git a/src/PHPCensor/Plugin/PhpCsFixer.php b/src/PHPCensor/Plugin/PhpCsFixer.php index dc5b2feb..76b65858 100644 --- a/src/PHPCensor/Plugin/PhpCsFixer.php +++ b/src/PHPCensor/Plugin/PhpCsFixer.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Gabriel Baker */ class PhpCsFixer extends Plugin { diff --git a/src/PHPCensor/Plugin/PhpDocblockChecker.php b/src/PHPCensor/Plugin/PhpDocblockChecker.php index 74389c40..6187d70e 100644 --- a/src/PHPCensor/Plugin/PhpDocblockChecker.php +++ b/src/PHPCensor/Plugin/PhpDocblockChecker.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class PhpDocblockChecker extends Plugin implements ZeroConfigPluginInterface { diff --git a/src/PHPCensor/Plugin/PhpLoc.php b/src/PHPCensor/Plugin/PhpLoc.php index 8852fb73..391fa6b0 100644 --- a/src/PHPCensor/Plugin/PhpLoc.php +++ b/src/PHPCensor/Plugin/PhpLoc.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Johan van der Heide */ class PhpLoc extends Plugin implements ZeroConfigPluginInterface { diff --git a/src/PHPCensor/Plugin/PhpMessDetector.php b/src/PHPCensor/Plugin/PhpMessDetector.php index ac1d574c..56e27e13 100644 --- a/src/PHPCensor/Plugin/PhpMessDetector.php +++ b/src/PHPCensor/Plugin/PhpMessDetector.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class PhpMessDetector extends Plugin implements ZeroConfigPluginInterface { diff --git a/src/PHPCensor/Plugin/PhpParallelLint.php b/src/PHPCensor/Plugin/PhpParallelLint.php index ddebd02e..4026ba82 100644 --- a/src/PHPCensor/Plugin/PhpParallelLint.php +++ b/src/PHPCensor/Plugin/PhpParallelLint.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Vaclav Makes */ class PhpParallelLint extends Plugin implements ZeroConfigPluginInterface { diff --git a/src/PHPCensor/Plugin/PhpSpec.php b/src/PHPCensor/Plugin/PhpSpec.php index 5d3918e9..5f339287 100644 --- a/src/PHPCensor/Plugin/PhpSpec.php +++ b/src/PHPCensor/Plugin/PhpSpec.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer */ class PhpSpec extends Plugin { diff --git a/src/PHPCensor/Plugin/PhpTalLint.php b/src/PHPCensor/Plugin/PhpTalLint.php index 41e44cd4..636df1e2 100644 --- a/src/PHPCensor/Plugin/PhpTalLint.php +++ b/src/PHPCensor/Plugin/PhpTalLint.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Stephen Ball */ class PhpTalLint extends Plugin { diff --git a/src/PHPCensor/Plugin/PhpUnit.php b/src/PHPCensor/Plugin/PhpUnit.php index 8bbe6afa..7ad15045 100644 --- a/src/PHPCensor/Plugin/PhpUnit.php +++ b/src/PHPCensor/Plugin/PhpUnit.php @@ -1,17 +1,9 @@ - * @author Pablo Tejada - * @package PHPCI - * @subpackage Plugins + * @author Dan Cryer + * @author Pablo Tejada */ class PhpUnit extends Plugin implements ZeroConfigPluginInterface { diff --git a/src/PHPCensor/Plugin/SlackNotify.php b/src/PHPCensor/Plugin/SlackNotify.php index 444c828e..a3ff12b9 100644 --- a/src/PHPCensor/Plugin/SlackNotify.php +++ b/src/PHPCensor/Plugin/SlackNotify.php @@ -1,10 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Stephen Ball */ class SlackNotify extends Plugin { diff --git a/src/PHPCensor/Plugin/Sqlite.php b/src/PHPCensor/Plugin/Sqlite.php index c984fc5f..4418c7ea 100644 --- a/src/PHPCensor/Plugin/Sqlite.php +++ b/src/PHPCensor/Plugin/Sqlite.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Dmitry Khomutov */ class Sqlite extends Plugin { diff --git a/src/PHPCensor/Plugin/TechnicalDebt.php b/src/PHPCensor/Plugin/TechnicalDebt.php index 5361584d..0a738817 100644 --- a/src/PHPCensor/Plugin/TechnicalDebt.php +++ b/src/PHPCensor/Plugin/TechnicalDebt.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author James Inman */ class TechnicalDebt extends Plugin implements ZeroConfigPluginInterface { diff --git a/src/PHPCensor/Plugin/Util/Executor.php b/src/PHPCensor/Plugin/Util/Executor.php index 4660e171..b9840f27 100644 --- a/src/PHPCensor/Plugin/Util/Executor.php +++ b/src/PHPCensor/Plugin/Util/Executor.php @@ -11,7 +11,6 @@ use PHPCensor\Store\BuildStore; /** * Plugin Executor - Runs the configured plugins for a given build stage. - * @package PHPCensor\Plugin\Util */ class Executor { diff --git a/src/PHPCensor/Plugin/Util/Factory.php b/src/PHPCensor/Plugin/Util/Factory.php index 267931b8..7be3b0f2 100644 --- a/src/PHPCensor/Plugin/Util/Factory.php +++ b/src/PHPCensor/Plugin/Util/Factory.php @@ -6,7 +6,6 @@ use Pimple\Container; /** * Plugin Factory - Loads Plugins and passes required dependencies. - * @package PHPCensor\Plugin\Util */ class Factory { diff --git a/src/PHPCensor/Plugin/Util/PhpUnitResult.php b/src/PHPCensor/Plugin/Util/PhpUnitResult.php index ef95d66f..04a75488 100644 --- a/src/PHPCensor/Plugin/Util/PhpUnitResult.php +++ b/src/PHPCensor/Plugin/Util/PhpUnitResult.php @@ -1,21 +1,11 @@ - * @package PHPCI - * @subpackage Plugin + * @author Pablo Tejada */ class PhpUnitResult { diff --git a/src/PHPCensor/Plugin/Util/TestResultParsers/Codeception.php b/src/PHPCensor/Plugin/Util/TestResultParsers/Codeception.php index 346099f5..6c2594a9 100644 --- a/src/PHPCensor/Plugin/Util/TestResultParsers/Codeception.php +++ b/src/PHPCensor/Plugin/Util/TestResultParsers/Codeception.php @@ -8,7 +8,6 @@ use PHPCensor\Builder; * Class Codeception * * @author Adam Cooper - * @package PHPCensor\Plugin\Util\TestResultParsers */ class Codeception implements ParserInterface { diff --git a/src/PHPCensor/Plugin/Util/TestResultParsers/ParserInterface.php b/src/PHPCensor/Plugin/Util/TestResultParsers/ParserInterface.php index cb58a0bb..ccd2d1ea 100644 --- a/src/PHPCensor/Plugin/Util/TestResultParsers/ParserInterface.php +++ b/src/PHPCensor/Plugin/Util/TestResultParsers/ParserInterface.php @@ -4,7 +4,6 @@ namespace PHPCensor\Plugin\Util\TestResultParsers; interface ParserInterface { - /** * @return array An array of key/value pairs for storage in the plugins result metadata */ diff --git a/src/PHPCensor/Plugin/Wipe.php b/src/PHPCensor/Plugin/Wipe.php index 7dc3f7cb..e02a08a9 100644 --- a/src/PHPCensor/Plugin/Wipe.php +++ b/src/PHPCensor/Plugin/Wipe.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Claus Due */ class Wipe extends Plugin { diff --git a/src/PHPCensor/Plugin/Xmpp.php b/src/PHPCensor/Plugin/Xmpp.php index f62f73fe..7aa54bfe 100644 --- a/src/PHPCensor/Plugin/Xmpp.php +++ b/src/PHPCensor/Plugin/Xmpp.php @@ -1,11 +1,4 @@ - * @package PHPCI - * @subpackage Plugins + * @author Alexandre Russo */ class XMPP extends Plugin { diff --git a/src/PHPCensor/ProcessControl/Factory.php b/src/PHPCensor/ProcessControl/Factory.php index 4ccd57ef..808077a8 100644 --- a/src/PHPCensor/ProcessControl/Factory.php +++ b/src/PHPCensor/ProcessControl/Factory.php @@ -1,11 +1,4 @@ + * + * @author Dan Cryer */ interface ZeroConfigPluginInterface { diff --git a/tests/PHPCensor/Command/CreateAdminCommandTest.php b/tests/PHPCensor/Command/CreateAdminCommandTest.php index 65fd2a8a..e832c3e8 100644 --- a/tests/PHPCensor/Command/CreateAdminCommandTest.php +++ b/tests/PHPCensor/Command/CreateAdminCommandTest.php @@ -1,17 +1,8 @@ */ class BuildTest extends \PHPUnit_Framework_TestCase diff --git a/tests/PHPCensor/Model/ProjectTest.php b/tests/PHPCensor/Model/ProjectTest.php index 4eed900f..4fad6d98 100644 --- a/tests/PHPCensor/Model/ProjectTest.php +++ b/tests/PHPCensor/Model/ProjectTest.php @@ -1,14 +1,5 @@ */ class ProjectTest extends \PHPUnit_Framework_TestCase diff --git a/tests/PHPCensor/Plugin/EmailTest.php b/tests/PHPCensor/Plugin/EmailTest.php index 1af168cb..0ee8ef4f 100644 --- a/tests/PHPCensor/Plugin/EmailTest.php +++ b/tests/PHPCensor/Plugin/EmailTest.php @@ -1,13 +1,5 @@ registerResource( - // This function will be called when the resource is needed. - function() { - return [ - 'bar' => "Hello", - ]; - }, - "requiredArgument", - null - ); -}; diff --git a/tests/PHPCensor/Plugin/Util/ExecutorTest.php b/tests/PHPCensor/Plugin/Util/ExecutorTest.php index 5bbe00fb..c22c0f91 100644 --- a/tests/PHPCensor/Plugin/Util/ExecutorTest.php +++ b/tests/PHPCensor/Plugin/Util/ExecutorTest.php @@ -1,13 +1,5 @@ assertArrayHasKey('thing', $plugin->options); } - public function testAddConfigFromFile_ReturnsTrueForValidFile() - { - $result = $this->testedFactory->addConfigFromFile( - realpath(__DIR__ . "/ExamplePluginConfig.php") - ); - - $this->assertTrue($result); - } - - public function testAddConfigFromFile_RegistersResources() - { - $this->testedFactory->addConfigFromFile( - realpath(__DIR__ . "/ExamplePluginConfig.php") - ); - - $pluginClass = $this->getFakePluginClassName('ExamplePluginWithSingleRequiredArg'); - $plugin = $this->testedFactory->buildPlugin($pluginClass); - - // The Example config file defines an array as the resource. - $this->assertEquals( - ["bar" => "Hello"], - $plugin->RequiredArgument - ); - } - /** * Registers mocked Builder and Build classes so that realistic plugins * can be tested. diff --git a/tests/PHPCensor/Plugin/Util/Fake/ExamplePluginFull.php b/tests/PHPCensor/Plugin/Util/Fake/ExamplePluginFull.php index 1179badf..15c3bfbb 100644 --- a/tests/PHPCensor/Plugin/Util/Fake/ExamplePluginFull.php +++ b/tests/PHPCensor/Plugin/Util/Fake/ExamplePluginFull.php @@ -1,13 +1,5 @@ */ class BuildServiceTest extends \PHPUnit_Framework_TestCase diff --git a/tests/PHPCensor/Service/BuiltStatusServiceTest.php b/tests/PHPCensor/Service/BuiltStatusServiceTest.php index a50a74c6..393496b8 100644 --- a/tests/PHPCensor/Service/BuiltStatusServiceTest.php +++ b/tests/PHPCensor/Service/BuiltStatusServiceTest.php @@ -1,11 +1,4 @@ */ class BuildStatusServiceTest extends \PHPUnit_Framework_TestCase diff --git a/tests/PHPCensor/Service/ProjectServiceTest.php b/tests/PHPCensor/Service/ProjectServiceTest.php index 83cfee10..fbb4efe1 100644 --- a/tests/PHPCensor/Service/ProjectServiceTest.php +++ b/tests/PHPCensor/Service/ProjectServiceTest.php @@ -1,14 +1,5 @@ */ class ProjectServiceTest extends \PHPUnit_Framework_TestCase diff --git a/tests/PHPCensor/Service/UserServiceTest.php b/tests/PHPCensor/Service/UserServiceTest.php index a107d38e..679c2d65 100644 --- a/tests/PHPCensor/Service/UserServiceTest.php +++ b/tests/PHPCensor/Service/UserServiceTest.php @@ -1,13 +1,5 @@ */ class UserServiceTest extends \PHPUnit_Framework_TestCase diff --git a/tests/bootstrap.php b/tests/bootstrap.php index f7e42b62..f308bdc6 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,11 +1,4 @@