@@ -92,7 +92,6 @@ discard block |
||
92 | 92 | |
93 | 93 | /** |
94 | 94 | * @Annotation |
95 | - * @param int $test |
|
96 | 95 | */ |
97 | 96 | public function testReadTypeIntAnnotations(){ |
98 | 97 | $reader = new ControllerMethodReflector(); |
@@ -107,7 +106,6 @@ discard block |
||
107 | 106 | |
108 | 107 | /** |
109 | 108 | * @Annotation |
110 | - * @param double $test something special |
|
111 | 109 | */ |
112 | 110 | public function testReadTypeDoubleAnnotations(){ |
113 | 111 | $reader = new ControllerMethodReflector(); |
@@ -121,7 +119,6 @@ discard block |
||
121 | 119 | |
122 | 120 | /** |
123 | 121 | * @Annotation |
124 | - * @param string $foo |
|
125 | 122 | */ |
126 | 123 | public function testReadTypeWhitespaceAnnotations(){ |
127 | 124 | $reader = new ControllerMethodReflector(); |
@@ -46,6 +46,10 @@ |
||
46 | 46 | |
47 | 47 | class SimpleUserForTesting implements \OCP\IUser { |
48 | 48 | |
49 | + /** |
|
50 | + * @param string $uid |
|
51 | + * @param string $displayName |
|
52 | + */ |
|
49 | 53 | public function __construct($uid, $displayName) { |
50 | 54 | |
51 | 55 | $this->uid = $uid; |
@@ -37,6 +37,9 @@ |
||
37 | 37 | $this->formatter = new \OC\DateTimeFormatter(new \DateTimeZone('UTC'), new \OC_L10N('lib', 'en')); |
38 | 38 | } |
39 | 39 | |
40 | + /** |
|
41 | + * @param integer $time |
|
42 | + */ |
|
40 | 43 | protected function getTimestampAgo($time, $seconds = 0, $minutes = 0, $hours = 0, $days = 0, $years = 0) { |
41 | 44 | return $time - $seconds - $minutes * 60 - $hours * 3600 - $days * 24*3600 - $years * 365*24*3600; |
42 | 45 | } |
@@ -322,11 +322,19 @@ |
||
322 | 322 | $this->assertSame(2, $query->execute(array('uri1'))); |
323 | 323 | } |
324 | 324 | |
325 | + /** |
|
326 | + * @param string $fullname |
|
327 | + * @param string $uri |
|
328 | + */ |
|
325 | 329 | protected function insertCardData($fullname, $uri) { |
326 | 330 | $query = OC_DB::prepare("INSERT INTO `*PREFIX*{$this->table2}` (`fullname`, `uri`, `carddata`) VALUES (?, ?, ?)"); |
327 | 331 | $this->assertSame(1, $query->execute(array($fullname, $uri, $this->getUniqueID()))); |
328 | 332 | } |
329 | 333 | |
334 | + /** |
|
335 | + * @param string $fullname |
|
336 | + * @param string $uri |
|
337 | + */ |
|
330 | 338 | protected function updateCardData($fullname, $uri) { |
331 | 339 | $query = OC_DB::prepare("UPDATE `*PREFIX*{$this->table2}` SET `uri` = ? WHERE `fullname` = ?"); |
332 | 340 | return $query->execute(array($uri, $fullname)); |
@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
55 | - * @return \Doctrine\DBAL\Schema\Schema[] |
|
55 | + * @return Schema[] |
|
56 | 56 | */ |
57 | 57 | private function getDuplicateKeySchemas() { |
58 | 58 | $startSchema = new Schema(array(), array(), $this->getSchemaConfig()); |
@@ -38,6 +38,10 @@ |
||
38 | 38 | parent::tearDown(); |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param Certificate[] $expected |
|
43 | + * @param OCP\ICertificate[] $actual |
|
44 | + */ |
|
41 | 45 | protected function assertEqualsArrays($expected, $actual) { |
42 | 46 | sort($expected); |
43 | 47 | sort($actual); |
@@ -926,6 +926,9 @@ |
||
926 | 926 | $this->assertSame(0, count($result6)); |
927 | 927 | } |
928 | 928 | |
929 | + /** |
|
930 | + * @param string[] $expected |
|
931 | + */ |
|
929 | 932 | public function verifyResult($result, $expected) { |
930 | 933 | foreach ($result as $r) { |
931 | 934 | if (in_array($r['item_target'], $expected)) { |
@@ -42,6 +42,9 @@ |
||
42 | 42 | protected $testId; |
43 | 43 | protected $preName; |
44 | 44 | |
45 | + /** |
|
46 | + * @param string $name |
|
47 | + */ |
|
45 | 48 | public function __construct($name=null){ |
46 | 49 | $this->addType('testId', 'integer'); |
47 | 50 | $this->name = $name; |
@@ -144,6 +144,9 @@ |
||
144 | 144 | return true; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $path |
|
149 | + */ |
|
147 | 150 | public function url_stat($path) { |
148 | 151 | if (isset(self::$data[$path])) { |
149 | 152 | $size = strlen(self::$data[$path]); |