Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Consistently use lowercase "array".

  • Loading branch information...
commit 4c7de89ce51bb016abc47331d9d660d0f9773159 1 parent 41782be
Sebastian Bergmann authored
4 PHPUnit/Framework/Assert.php
View
@@ -86,7 +86,7 @@ protected function __construct()
* @static
* @since Method available since Release 3.0.0
*/
- public static function assertArrayHasKey($key, Array $array, $message = '')
+ public static function assertArrayHasKey($key, array $array, $message = '')
{
if (!(is_integer($key) || is_string($key))) {
throw new InvalidArgumentException;
@@ -109,7 +109,7 @@ public static function assertArrayHasKey($key, Array $array, $message = '')
* @static
* @since Method available since Release 3.0.0
*/
- public static function assertArrayNotHasKey($key, Array $array, $message = '')
+ public static function assertArrayNotHasKey($key, array $array, $message = '')
{
if (!(is_integer($key) || is_string($key))) {
throw new InvalidArgumentException;
2  PHPUnit/Framework/Constraint/And.php
View
@@ -72,7 +72,7 @@ class PHPUnit_Framework_Constraint_And implements PHPUnit_Framework_Constraint
private $failedConstraint = NULL;
- public function setConstraints(Array $constraints)
+ public function setConstraints(array $constraints)
{
$this->constraints = array();
2  PHPUnit/Framework/Constraint/Or.php
View
@@ -70,7 +70,7 @@ class PHPUnit_Framework_Constraint_Or implements PHPUnit_Framework_Constraint
{
private $constraints = array();
- public function setConstraints(Array $constraints)
+ public function setConstraints(array $constraints)
{
$this->constraints = array();
6 PHPUnit/Framework/MockObject/Mock.php
View
@@ -93,7 +93,7 @@ class PHPUnit_Framework_MockObject_Mock
public $className;
public $methods;
- public function __construct($className, Array $methods = array(), $mockClassName = '')
+ public function __construct($className, array $methods = array(), $mockClassName = '')
{
$this->mockClassName = $mockClassName;
@@ -114,7 +114,7 @@ public function __construct($className, Array $methods = array(), $mockClassName
$this->methods = $methods;
}
- public static function generate($className, Array $methods = array(), $mockClassName = '')
+ public static function generate($className, array $methods = array(), $mockClassName = '')
{
$mock = new PHPUnit_Framework_MockObject_Mock($className, $methods, $mockClassName);
@@ -317,7 +317,7 @@ protected function generateMethodParameters(ReflectionMethod $method, $asCall =
$typeHint = '';
if ($parameter->isArray()) {
- $typeHint = 'Array ';
+ $typeHint = 'array ';
} else {
$class = $parameter->getClass();
10 PHPUnit/Framework/TestCase.php
View
@@ -133,13 +133,13 @@
* @var Array
* @access private
*/
- private $iniSettings = Array();
+ private $iniSettings = array();
/**
* @var Array
* @access private
*/
- private $mockObjects = Array();
+ private $mockObjects = array();
/**
* Constructs a test case with the given name.
@@ -247,7 +247,7 @@ public function runBare()
$mockObject->verify();
}
- $this->mockObjects = Array();
+ $this->mockObjects = array();
}
catch (Exception $e) {
@@ -266,7 +266,7 @@ public function runBare()
ini_set($varName, $oldValue);
}
- $this->iniSettings = Array();
+ $this->iniSettings = array();
// Workaround for missing "finally".
if ($catchedException !== NULL) {
@@ -349,7 +349,7 @@ protected function iniSet($varName, $newValue)
* @access protected
* @since Method available since Release 3.0.0
*/
- protected function getMock($className, Array $methods = array(), Array $arguments = array(), $mockClassName = '')
+ protected function getMock($className, array $methods = array(), array $arguments = array(), $mockClassName = '')
{
if (!is_string($className) || !is_string($mockClassName)) {
throw new InvalidArgumentException;
4 PHPUnit/Framework/TestSuite.php
View
@@ -348,12 +348,12 @@ public function addTestFile($filename)
/**
* Wrapper for addTestFile() that adds multiple test files.
*
- * @param Array $filenames
+ * @param array $filenames
* @throws InvalidArgumentException
* @access public
* @since Method available since Release 2.3.0
*/
- public function addTestFiles(Array $filenames)
+ public function addTestFiles(array $filenames)
{
foreach ($filenames as $filename) {
$this->addTestFile($filename);
2  PHPUnit/TextUI/ResultPrinter.php
View
@@ -143,7 +143,7 @@ public function printResult(PHPUnit_Framework_TestResult $result)
* @param string $type
* @access protected
*/
- protected function printDefects(Array $defects, $count, $type)
+ protected function printDefects(array $defects, $count, $type)
{
if ($count == 0) {
return;
4 PHPUnit/TextUI/TestRunner.php
View
@@ -107,7 +107,7 @@ class PHPUnit_TextUI_TestRunner extends PHPUnit_Runner_BaseTestRunner
* @access public
* @static
*/
- public static function run($test, Array $parameters = array())
+ public static function run($test, array $parameters = array())
{
if ($test instanceof ReflectionClass) {
$test = new PHPUnit_Framework_TestSuite($test);
@@ -158,7 +158,7 @@ protected function createTestResult()
* @return PHPUnit_Framework_TestResult
* @access public
*/
- public function doRun(PHPUnit_Framework_Test $suite, Array $parameters = array())
+ public function doRun(PHPUnit_Framework_Test $suite, array $parameters = array())
{
$parameters['repeat'] = isset($parameters['repeat']) ? $parameters['repeat'] : FALSE;
$parameters['filter'] = isset($parameters['filter']) ? $parameters['filter'] : FALSE;
2  PHPUnit/Util/Array.php
View
@@ -69,7 +69,7 @@ class PHPUnit_Util_Array
* @access public
* @static
*/
- public static function sortRecursively(Array $array)
+ public static function sortRecursively(array $array)
{
ksort($array);
2  PHPUnit/Util/Filter.php
View
@@ -147,7 +147,7 @@ public static function removeFileFromFilter($filename, $group = 'DEFAULT')
* @access public
* @static
*/
- public static function getFilteredCodeCoverage(Array $codeCoverageInformation, $filterTests = TRUE, $filterPHPUnit = TRUE)
+ public static function getFilteredCodeCoverage(array $codeCoverageInformation, $filterTests = TRUE, $filterPHPUnit = TRUE)
{
if (self::$filter) {
$max = count($codeCoverageInformation);
2  PHPUnit/Util/Getopt.php
View
@@ -63,7 +63,7 @@
* @abstract
*/
class PHPUnit_Util_Getopt {
- public static function getopt(Array $args, $short_options, $long_options = null)
+ public static function getopt(array $args, $short_options, $long_options = null)
{
if (empty($args)) {
return array(array(), array());
2  PHPUnit/Util/Log/JSON.php
View
@@ -228,7 +228,7 @@ public function endTest(PHPUnit_Framework_Test $test, $time)
* @param string $message
* @access private
*/
- private function writeCase($status, $time, Array $trace = array(), $message = '')
+ private function writeCase($status, $time, array $trace = array(), $message = '')
{
$message = array(
'event' => 'test',
2  PHPUnit/Util/Report/Coverage/Factory.php
View
@@ -96,7 +96,7 @@ public static function create(PHPUnit_Framework_TestResult $result, PHPUnit_Util
* @access protected
* @static
*/
- protected static function addItems(PHPUnit_Util_Report_Coverage_Node_Directory $root, Array $items, PHPUnit_Util_Report_Test_Node_TestSuite $testSuite, Array $files)
+ protected static function addItems(PHPUnit_Util_Report_Coverage_Node_Directory $root, array $items, PHPUnit_Util_Report_Test_Node_TestSuite $testSuite, array $files)
{
foreach ($items as $key => $value) {
if (substr($key, -2) == '/f') {
4 PHPUnit/Util/Report/Coverage/Node/Directory.php
View
@@ -127,7 +127,7 @@ public function addDirectory($name)
* @throws RuntimeException
* @access public
*/
- public function addFile($name, Array $lines)
+ public function addFile($name, array $lines)
{
$file = new PHPUnit_Util_Report_Coverage_Node_File(
$name,
@@ -308,7 +308,7 @@ protected function renderItems($includeDetails)
* @return string
* @access protected
*/
- protected function doRenderItems(Array $items, $includeDetails)
+ protected function doRenderItems(array $items, $includeDetails)
{
$result = '';
2  PHPUnit/Util/Report/Coverage/Node/File.php
View
@@ -118,7 +118,7 @@ class PHPUnit_Util_Report_Coverage_Node_File extends PHPUnit_Util_Report_Coverag
* @throws RuntimeException
* @access public
*/
- public function __construct($name, PHPUnit_Util_Report_Coverage_Node $parent, Array $executedLines)
+ public function __construct($name, PHPUnit_Util_Report_Coverage_Node $parent, array $executedLines)
{
parent::__construct($name, $parent);
2  PHPUnit/Util/Report/Test/Factory.php
View
@@ -93,7 +93,7 @@ public static function create(PHPUnit_Framework_TestResult $result)
* @access protected
* @static
*/
- protected static function addTests(Array $tests, PHPUnit_Util_Report_Test_Node_TestSuite $root)
+ protected static function addTests(array $tests, PHPUnit_Util_Report_Test_Node_TestSuite $root)
{
foreach ($tests as $key => $value) {
if (is_int($key)) {
Please sign in to comment.
Something went wrong with that request. Please try again.