Permalink
Browse files

Adding docblock in CI depends script.

  • Loading branch information...
1 parent 7c23779 commit d324c63030655299171189c2531dd77d74ccbce0 @davidpersson davidpersson committed with nateabele Apr 16, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 tests/ci_depends.php
View
@@ -1,5 +1,11 @@
#!/usr/bin/env php
<?php
+/**
+ * Lithium: the most rad php framework
+ *
+ * @copyright Copyright 2012, Union of RAD (http://union-of-rad.org)
+ * @license http://opensource.org/licenses/bsd-license.php The BSD License
+ */
if (isset($argv[1]) && 'APC' === strtoupper($argv[1])) {
PhpExtensions::install('apc');
@@ -8,6 +14,10 @@
}
PhpExtensions::install('mongo');
+/**
+ * Class to install native PHP extensions mainly
+ * for preparing test runs.
+ */
class PhpExtensions {
/**
@@ -99,6 +109,12 @@ public static function install($name) {
}
}
+ /**
+ * Executes given command, reports and exits in case it fails.
+ *
+ * @param string $command The command to execute.
+ * @return void
+ */
protected static function _system($command) {
$return = 0;
system($command, $return);

0 comments on commit d324c63

Please sign in to comment.