@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Console\Tester\CommandTester; |
6 | 6 | use Symfony\Component\Console\Output\StreamOutput; |
7 | -use Phinx\Config\Config; |
|
8 | 7 | use Phinx\Console\Command\Init; |
9 | 8 | |
10 | 9 | class InitTest extends \PHPUnit_Framework_TestCase |
@@ -76,6 +76,10 @@ discard block |
||
76 | 76 | } |
77 | 77 | |
78 | 78 | // helper methods for easy mocking |
79 | + |
|
80 | + /** |
|
81 | + * @param string $expected_sql |
|
82 | + */ |
|
79 | 83 | private function assertExecuteSql($expected_sql) |
80 | 84 | { |
81 | 85 | $this->conn->expects($this->once()) |
@@ -83,6 +87,9 @@ discard block |
||
83 | 87 | ->with($this->equalTo($expected_sql)); |
84 | 88 | } |
85 | 89 | |
90 | + /** |
|
91 | + * @param \PHPUnit_Framework_TestResult $returnValue |
|
92 | + */ |
|
86 | 93 | private function assertQuerySql($expectedSql, $returnValue = null) |
87 | 94 | { |
88 | 95 | $expect = $this->conn->expects($this->once()) |
@@ -93,6 +100,9 @@ discard block |
||
93 | 100 | } |
94 | 101 | } |
95 | 102 | |
103 | + /** |
|
104 | + * @param string $expectedSql |
|
105 | + */ |
|
96 | 106 | private function assertFetchRowSql($expectedSql, $returnValue) |
97 | 107 | { |
98 | 108 | $this->result->expects($this->once()) |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Console\Output\StreamOutput; |
6 | 6 | use Phinx\Config\Config; |
7 | -use Phinx\Db\Adapter\MysqlAdapter; |
|
8 | 7 | use Phinx\Migration\Manager; |
9 | 8 | use Phinx\Migration\Manager\Environment; |
10 | 9 |
@@ -6,6 +6,9 @@ |
||
6 | 6 | |
7 | 7 | class UtilTest extends \PHPUnit_Framework_TestCase |
8 | 8 | { |
9 | + /** |
|
10 | + * @param string $path |
|
11 | + */ |
|
9 | 12 | private function getCorrectedPath($path) |
10 | 13 | { |
11 | 14 | return str_replace('/', DIRECTORY_SEPARATOR, $path); |
@@ -129,6 +129,9 @@ |
||
129 | 129 | } |
130 | 130 | } |
131 | 131 | |
132 | + /** |
|
133 | + * @param string $lines |
|
134 | + */ |
|
132 | 135 | protected function indent($lines) |
133 | 136 | { |
134 | 137 | return trim(str_replace("\n", "\n ", $lines)); |
@@ -98,6 +98,9 @@ |
||
98 | 98 | ); |
99 | 99 | } |
100 | 100 | |
101 | + /** |
|
102 | + * @param string $content |
|
103 | + */ |
|
101 | 104 | private function createDOMDocument($content) |
102 | 105 | { |
103 | 106 | $document = new DOMDocument; |
@@ -326,6 +326,9 @@ |
||
326 | 326 | $this->assertEquals(array(true), $this->exporter->toArray(true)); |
327 | 327 | } |
328 | 328 | |
329 | + /** |
|
330 | + * @param string $string |
|
331 | + */ |
|
329 | 332 | private function trimNewline($string) |
330 | 333 | { |
331 | 334 | return preg_replace('/[ ]*\n/', "\n", $string); |
@@ -50,11 +50,17 @@ discard block |
||
50 | 50 | $this->parent = $parent; |
51 | 51 | } |
52 | 52 | |
53 | + /** |
|
54 | + * @param string $key |
|
55 | + */ |
|
53 | 56 | public function setAttribute($key, $value) |
54 | 57 | { |
55 | 58 | $this->attributes[$key] = $value; |
56 | 59 | } |
57 | 60 | |
61 | + /** |
|
62 | + * @param string $key |
|
63 | + */ |
|
58 | 64 | public function getAttribute($key, $default = null) |
59 | 65 | { |
60 | 66 | return isset($this->attributes[$key]) ? $this->attributes[$key] : $default; |
@@ -123,7 +129,7 @@ discard block |
||
123 | 129 | /** |
124 | 130 | * Adds an equivalent value. |
125 | 131 | * |
126 | - * @param mixed $originalValue |
|
132 | + * @param null|boolean $originalValue |
|
127 | 133 | * @param mixed $equivalentValue |
128 | 134 | */ |
129 | 135 | public function addEquivalentValue($originalValue, $equivalentValue) |
@@ -37,6 +37,7 @@ |
||
37 | 37 | |
38 | 38 | /** |
39 | 39 | * {@inheritdoc} |
40 | + * @param string $name |
|
40 | 41 | */ |
41 | 42 | public function __construct($name, NodeParentInterface $parent = null) |
42 | 43 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | private $values; |
24 | 24 | |
25 | 25 | /** |
26 | - * @param array $values |
|
26 | + * @param string[] $values |
|
27 | 27 | * |
28 | 28 | * @return EnumNodeDefinition|$this |
29 | 29 | */ |