Completed
Pull Request — master (#5580)
by Marco
10:58
created
tests/Doctrine/Tests/ORM/Query/DeleteSqlGenerationTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -43,6 +43,10 @@
 block discarded – undo
43 43
         $this->_em = $this->_getTestEntityManager();
44 44
     }
45 45
 
46
+    /**
47
+     * @param string $dqlToBeTested
48
+     * @param string $sqlToBeConfirmed
49
+     */
46 50
     public function assertSqlGeneration($dqlToBeTested, $sqlToBeConfirmed)
47 51
     {
48 52
         try {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/LanguageRecognitionTest.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@  discard block
 block discarded – undo
17 17
         $this->_em = $this->_getTestEntityManager();
18 18
     }
19 19
 
20
+    /**
21
+     * @param string $dql
22
+     */
20 23
     public function assertValidDQL($dql, $debug = false)
21 24
     {
22 25
         try {
@@ -30,6 +33,9 @@  discard block
 block discarded – undo
30 33
         }
31 34
     }
32 35
 
36
+    /**
37
+     * @param string $dql
38
+     */
33 39
     public function assertInvalidDQL($dql, $debug = false)
34 40
     {
35 41
         try {
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 namespace Doctrine\Tests\ORM\Query;
3 3
 
4 4
 use Doctrine\ORM\EntityManagerInterface;
5
-use Doctrine\ORM\Query,
6
-    Doctrine\ORM\Query\QueryException;
5
+use Doctrine\ORM\Query;
6
+use Doctrine\ORM\Query\QueryException;
7 7
 
8 8
 class LanguageRecognitionTest extends \Doctrine\Tests\OrmTestCase
9 9
 {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/QueryTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
 
22 22
 use Doctrine\Common\Collections\ArrayCollection;
23 23
 use Doctrine\Common\Collections\Criteria;
24
-
25 24
 use Doctrine\ORM\Query\Expr;
26 25
 use Doctrine\ORM\Query\QueryExpressionVisitor;
27 26
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Query/UpdateSqlGenerationTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -51,6 +51,10 @@
 block discarded – undo
51 51
         $this->_em = $this->_getTestEntityManager();
52 52
     }
53 53
 
54
+    /**
55
+     * @param string $dqlToBeTested
56
+     * @param string $sqlToBeConfirmed
57
+     */
54 58
     public function assertSqlGeneration($dqlToBeTested, $sqlToBeConfirmed)
55 59
     {
56 60
         try {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/QueryBuilderTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@
 block discarded – undo
48 48
         $this->_em = $this->_getTestEntityManager();
49 49
     }
50 50
 
51
+    /**
52
+     * @param string $expectedDql
53
+     */
51 54
     protected function assertValidQueryBuilder(QueryBuilder $qb, $expectedDql)
52 55
     {
53 56
         $dql = $qb->getDql();
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -22,9 +22,7 @@
 block discarded – undo
22 22
 use Doctrine\Common\Collections\ArrayCollection;
23 23
 use Doctrine\Common\Collections\Criteria;
24 24
 use Doctrine\ORM\Cache;
25
-
26 25
 use Doctrine\ORM\QueryBuilder;
27
-use Doctrine\ORM\Query\Expr;
28 26
 use Doctrine\ORM\Query\Parameter;
29 27
 use Doctrine\ORM\Query\ParameterTypeInferer;
30 28
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/ConvertDoctrine1SchemaTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@
 block discarded – undo
43 43
  */
44 44
 class ConvertDoctrine1SchemaTest extends \Doctrine\Tests\OrmTestCase
45 45
 {
46
+    /**
47
+     * @param \Doctrine\ORM\Mapping\Driver\YamlDriver $metadataDriver
48
+     */
46 49
     protected function _createEntityManager($metadataDriver)
47 50
     {
48 51
         $driverMock = new DriverMock();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
 use Doctrine\ORM\Tools\Export\ClassMetadataExporter;
25 25
 use Doctrine\ORM\Tools\ConvertDoctrine1Schema;
26 26
 use Doctrine\Tests\Mocks\MetadataDriverMock;
27
-use Doctrine\Tests\Mocks\DatabasePlatformMock;
28 27
 use Doctrine\Tests\Mocks\EntityManagerMock;
29 28
 use Doctrine\Tests\Mocks\ConnectionMock;
30 29
 use Doctrine\Tests\Mocks\DriverMock;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/EntityGeneratorTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1079,7 +1079,7 @@  discard block
 block discarded – undo
1079 1079
 
1080 1080
     /**
1081 1081
      * @param string $type
1082
-     * @param \ReflectionProperty $method
1082
+     * @param \ReflectionMethod $method
1083 1083
      */
1084 1084
     private function assertPhpDocReturnType($type, \ReflectionMethod $method)
1085 1085
     {
@@ -1089,7 +1089,7 @@  discard block
 block discarded – undo
1089 1089
 
1090 1090
     /**
1091 1091
      * @param string $type
1092
-     * @param \ReflectionProperty $method
1092
+     * @param \ReflectionMethod $method
1093 1093
      */
1094 1094
     private function assertPhpDocParamType($type, \ReflectionMethod $method)
1095 1095
     {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Export/AbstractClassMetadataExporterTest.php 2 patches
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@  discard block
 block discarded – undo
63 63
         return EntityManagerMock::create($conn, $config, $eventManager);
64 64
     }
65 65
 
66
+    /**
67
+     * @param string $path
68
+     */
66 69
     protected function _createMetadataDriver($type, $path)
67 70
     {
68 71
         $mappingDriver = array(
@@ -82,6 +85,9 @@  discard block
 block discarded – undo
82 85
         return $driver;
83 86
     }
84 87
 
88
+    /**
89
+     * @param EntityManagerMock $em
90
+     */
85 91
     protected function _createClassMetadataFactory($em, $type)
86 92
     {
87 93
         $factory = ($type === 'annotation')
@@ -292,7 +298,6 @@  discard block
 block discarded – undo
292 298
 
293 299
     /**
294 300
      * @depends testOneToManyAssociationsAreExported
295
-     * @param ClassMetadataInfo $metadata
296 301
      */
297 302
     public function testManyToManyAssociationsAreExported($class)
298 303
     {
@@ -392,6 +397,9 @@  discard block
 block discarded – undo
392 397
 #        $this->_deleteDirectory(__DIR__ . '/export/'.$this->_getType());
393 398
     }
394 399
 
400
+    /**
401
+     * @param string $path
402
+     */
395 403
     protected function _deleteDirectory($path)
396 404
     {
397 405
         if (is_file($path)) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
 use Doctrine\ORM\Mapping\ClassMetadataInfo;
26 26
 use Doctrine\ORM\Tools\EntityGenerator;
27 27
 use Doctrine\Tests\Mocks\MetadataDriverMock;
28
-use Doctrine\Tests\Mocks\DatabasePlatformMock;
29 28
 use Doctrine\Tests\Mocks\EntityManagerMock;
30 29
 use Doctrine\Tests\Mocks\ConnectionMock;
31 30
 use Doctrine\Tests\Mocks\DriverMock;
Please login to merge, or discard this patch.
tests/Doctrine/Tests/ORM/Tools/Pagination/LimitSubqueryOutputWalkerTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Doctrine\DBAL\Platforms\MySqlPlatform;
6 6
 use Doctrine\DBAL\Platforms\OraclePlatform;
7 7
 use Doctrine\DBAL\Platforms\PostgreSqlPlatform;
8
-use Doctrine\DBAL\Platforms\SQLServerPlatform;
9 8
 use Doctrine\ORM\Query;
10 9
 
11 10
 class LimitSubqueryOutputWalkerTest extends PaginationTestCase
Please login to merge, or discard this patch.