@@ -64,6 +64,7 @@ |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | + * @param string $content |
|
| 67 | 68 | * @return string Path to the new file |
| 68 | 69 | */ |
| 69 | 70 | private function createFile($content) |
@@ -1759,6 +1759,9 @@ |
||
| 1759 | 1759 | $this->parser->parse($ini); |
| 1760 | 1760 | } |
| 1761 | 1761 | |
| 1762 | + /** |
|
| 1763 | + * @param string $testsFile |
|
| 1764 | + */ |
|
| 1762 | 1765 | private function loadTestsFromFixtureFiles($testsFile) |
| 1763 | 1766 | { |
| 1764 | 1767 | $parser = new Parser(); |
@@ -164,6 +164,9 @@ discard block |
||
| 164 | 164 | static::notEmpty($value, $message); |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | + /** |
|
| 168 | + * @param integer $value |
|
| 169 | + */ |
|
| 167 | 170 | public static function integer($value, $message = '') |
| 168 | 171 | { |
| 169 | 172 | if (!is_int($value)) { |
@@ -204,6 +207,9 @@ discard block |
||
| 204 | 207 | } |
| 205 | 208 | } |
| 206 | 209 | |
| 210 | + /** |
|
| 211 | + * @param boolean $value |
|
| 212 | + */ |
|
| 207 | 213 | public static function boolean($value, $message = '') |
| 208 | 214 | { |
| 209 | 215 | if (!is_bool($value)) { |
@@ -334,6 +340,9 @@ discard block |
||
| 334 | 340 | } |
| 335 | 341 | } |
| 336 | 342 | |
| 343 | + /** |
|
| 344 | + * @param null|\phpDocumentor\Reflection\DocBlock\DescriptionFactory $value |
|
| 345 | + */ |
|
| 337 | 346 | public static function notNull($value, $message = '') |
| 338 | 347 | { |
| 339 | 348 | if (null === $value) { |
@@ -363,6 +372,9 @@ discard block |
||
| 363 | 372 | } |
| 364 | 373 | } |
| 365 | 374 | |
| 375 | + /** |
|
| 376 | + * @param integer $value |
|
| 377 | + */ |
|
| 366 | 378 | public static function eq($value, $value2, $message = '') |
| 367 | 379 | { |
| 368 | 380 | if ($value2 != $value) { |
@@ -712,6 +724,9 @@ discard block |
||
| 712 | 724 | } |
| 713 | 725 | } |
| 714 | 726 | |
| 727 | + /** |
|
| 728 | + * @param string $value |
|
| 729 | + */ |
|
| 715 | 730 | public static function classExists($value, $message = '') |
| 716 | 731 | { |
| 717 | 732 | if (!class_exists($value)) { |
@@ -733,6 +748,9 @@ discard block |
||
| 733 | 748 | } |
| 734 | 749 | } |
| 735 | 750 | |
| 751 | + /** |
|
| 752 | + * @param string $value |
|
| 753 | + */ |
|
| 736 | 754 | public static function implementsInterface($value, $interface, $message = '') |
| 737 | 755 | { |
| 738 | 756 | if (!in_array($interface, class_implements($value))) { |
@@ -937,6 +955,9 @@ discard block |
||
| 937 | 955 | return mb_strwidth($value, $encoding); |
| 938 | 956 | } |
| 939 | 957 | |
| 958 | + /** |
|
| 959 | + * @param string $message |
|
| 960 | + */ |
|
| 940 | 961 | protected static function reportInvalidArgument($message) |
| 941 | 962 | { |
| 942 | 963 | throw new InvalidArgumentException($message); |
@@ -118,6 +118,7 @@ |
||
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | 120 | * Helpers |
| 121 | + * @param string $path |
|
| 121 | 122 | */ |
| 122 | 123 | |
| 123 | 124 | private function getPharOutput($path) |
@@ -43,6 +43,9 @@ |
||
| 43 | 43 | /** @var string The version vector. */ |
| 44 | 44 | private $version = ''; |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $version |
|
| 48 | + */ |
|
| 46 | 49 | public function __construct($version = null, Description $description = null) |
| 47 | 50 | { |
| 48 | 51 | Assert::nullOrStringNotEmpty($version); |
@@ -43,6 +43,9 @@ |
||
| 43 | 43 | /** @var string The version vector. */ |
| 44 | 44 | private $version = ''; |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $version |
|
| 48 | + */ |
|
| 46 | 49 | public function __construct($version = null, Description $description = null) |
| 47 | 50 | { |
| 48 | 51 | Assert::nullOrStringNotEmpty($version); |
@@ -145,6 +145,9 @@ |
||
| 145 | 145 | public $errors; |
| 146 | 146 | public $value = null; |
| 147 | 147 | |
| 148 | + /** |
|
| 149 | + * @param string $value |
|
| 150 | + */ |
|
| 148 | 151 | public function __construct($value) |
| 149 | 152 | { |
| 150 | 153 | $this->value = $value; |
@@ -145,6 +145,9 @@ |
||
| 145 | 145 | public $errors; |
| 146 | 146 | public $value = null; |
| 147 | 147 | |
| 148 | + /** |
|
| 149 | + * @param string $value |
|
| 150 | + */ |
|
| 148 | 151 | public function __construct($value) |
| 149 | 152 | { |
| 150 | 153 | $this->value = $value; |
@@ -765,6 +765,9 @@ |
||
| 765 | 765 | return new StreamOutput(fopen('php://memory', 'r+', false), $verbosity, $decorated); |
| 766 | 766 | } |
| 767 | 767 | |
| 768 | + /** |
|
| 769 | + * @param string $expected |
|
| 770 | + */ |
|
| 768 | 771 | protected function generateOutput($expected) |
| 769 | 772 | { |
| 770 | 773 | $count = substr_count($expected, "\n"); |