summaryrefslogtreecommitdiffstats
path: root/tests/lib/app
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-07-02 16:34:18 +0200
committerLukas Reschke <lukas@owncloud.com>2015-07-02 16:36:40 +0200
commitb21d4a55f2efb4cd376ce475968895e6d4800ded (patch)
tree9250d4f40e58bc75dff871bc414712792d6d5b43 /tests/lib/app
parent063071b58db926238e895105e13a116a5ceebddb (diff)
downloadnextcloud-server-b21d4a55f2efb4cd376ce475968895e6d4800ded.tar.gz
nextcloud-server-b21d4a55f2efb4cd376ce475968895e6d4800ded.zip
Add missing type annotations
Diffstat (limited to 'tests/lib/app')
-rw-r--r--tests/lib/app/dependencyanalyzer.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/lib/app/dependencyanalyzer.php b/tests/lib/app/dependencyanalyzer.php
index d73bac5a2a7..6393384057f 100644
--- a/tests/lib/app/dependencyanalyzer.php
+++ b/tests/lib/app/dependencyanalyzer.php
@@ -68,6 +68,10 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
/**
* @dataProvider providesPhpVersion
+ *
+ * @param string $expectedMissing
+ * @param string $minVersion
+ * @param string $maxVersion
*/
public function testPhpVersion($expectedMissing, $minVersion, $maxVersion) {
$app = array(
@@ -106,6 +110,9 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
/**
* @dataProvider providesCommands
+ *
+ * @param string $expectedMissing
+ * @param string|null $commands
*/
public function testCommand($expectedMissing, $commands) {
$app = array(
@@ -179,6 +186,9 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
$this->assertEquals($expectedMissing, $missing);
}
+ /**
+ * @return array
+ */
function providesOC() {
return array(
// no version -> no missing dependency
@@ -192,6 +202,9 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
);
}
+ /**
+ * @return array
+ */
function providesOS() {
return array(
array(array(), null),
@@ -201,6 +214,9 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
);
}
+ /**
+ * @return array
+ */
function providesLibs() {
return array(
// we expect curl to exist
@@ -226,6 +242,9 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
);
}
+ /**
+ * @return array
+ */
function providesCommands() {
return array(
array(array(), null),
@@ -240,6 +259,9 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
);
}
+ /**
+ * @return array
+ */
function providesDatabases() {
return array(
// non BC - in case on databases are defined -> all are supported
@@ -250,6 +272,9 @@ class DependencyAnalyzer extends \PHPUnit_Framework_TestCase {
);
}
+ /**
+ * @return array
+ */
function providesPhpVersion() {
return array(
array(array(), null, null),