Skip to content

Commit ffcf5e4

Browse files
committed
Fixed PHPStan baseline
Removed unnecessary tests
1 parent 2280f9b commit ffcf5e4

File tree

5 files changed

+43
-312
lines changed

5 files changed

+43
-312
lines changed

phpstan-baseline.neon

Lines changed: 36 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -228,18 +228,6 @@ parameters:
228228
count: 1
229229
path: src/TableGateway/Feature/SequenceFeature.php
230230

231-
-
232-
message: '#^Class PhpDb\\Adapter\\Adapter constructor invoked with 1 parameter, 3\-4 required\.$#'
233-
identifier: arguments.count
234-
count: 1
235-
path: test/integration/Adapter/Driver/Pdo/Postgresql/AdapterTest.php
236-
237-
-
238-
message: '#^Class PhpDb\\Adapter\\Adapter constructor invoked with 1 parameter, 3\-4 required\.$#'
239-
identifier: arguments.count
240-
count: 1
241-
path: test/integration/Adapter/Driver/Pdo/Postgresql/TableGatewayTest.php
242-
243231
-
244232
message: '#^Call to method quoteValue\(\) on an unknown class PhpDb\\Adapter\\Platform\\Postgresql\.$#'
245233
identifier: class.notFound
@@ -342,12 +330,6 @@ parameters:
342330
count: 1
343331
path: test/unit/Adapter/AdapterAbstractServiceFactoryTest.php
344332

345-
-
346-
message: '#^Class PhpDb\\Adapter\\Adapter constructor invoked with 2 parameters, 3\-4 required\.$#'
347-
identifier: arguments.count
348-
count: 1
349-
path: test/unit/Adapter/AdapterAwareTraitTest.php
350-
351333
-
352334
message: '#^Method PhpDbTest\\Adapter\\AdapterServiceDelegatorTest\:\:testDelegatorWithPluginManager\(\) has PHPUnit\\Framework\\MockObject\\Exception in PHPDoc @throws tag but it''s not thrown\.$#'
353335
identifier: throws.unusedType
@@ -402,78 +384,6 @@ parameters:
402384
count: 1
403385
path: test/unit/Adapter/AdapterTest.php
404386

405-
-
406-
message: '#^Class PhpDb\\Adapter\\Adapter constructor invoked with 1 parameter, 3\-4 required\.$#'
407-
identifier: arguments.count
408-
count: 8
409-
path: test/unit/Adapter/AdapterTest.php
410-
411-
-
412-
message: '#^Class PhpDb\\Adapter\\Adapter constructor invoked with 2 parameters, 3\-4 required\.$#'
413-
identifier: arguments.count
414-
count: 6
415-
path: test/unit/Adapter/AdapterTest.php
416-
417-
-
418-
message: '#^Class PhpDb\\Adapter\\Driver\\Mysqli\\Mysqli not found\.$#'
419-
identifier: class.notFound
420-
count: 1
421-
path: test/unit/Adapter/AdapterTest.php
422-
423-
-
424-
message: '#^Class PhpDb\\Adapter\\Driver\\Pdo\\Pdo not found\.$#'
425-
identifier: class.notFound
426-
count: 1
427-
path: test/unit/Adapter/AdapterTest.php
428-
429-
-
430-
message: '#^Class PhpDb\\Adapter\\Driver\\Pgsql\\Pgsql not found\.$#'
431-
identifier: class.notFound
432-
count: 1
433-
path: test/unit/Adapter/AdapterTest.php
434-
435-
-
436-
message: '#^Class PhpDb\\Adapter\\Driver\\Sqlsrv\\Sqlsrv not found\.$#'
437-
identifier: class.notFound
438-
count: 1
439-
path: test/unit/Adapter/AdapterTest.php
440-
441-
-
442-
message: '#^Class PhpDb\\Adapter\\Platform\\IbmDb2 not found\.$#'
443-
identifier: class.notFound
444-
count: 1
445-
path: test/unit/Adapter/AdapterTest.php
446-
447-
-
448-
message: '#^Class PhpDb\\Adapter\\Platform\\Mysql not found\.$#'
449-
identifier: class.notFound
450-
count: 1
451-
path: test/unit/Adapter/AdapterTest.php
452-
453-
-
454-
message: '#^Class PhpDb\\Adapter\\Platform\\Oracle not found\.$#'
455-
identifier: class.notFound
456-
count: 2
457-
path: test/unit/Adapter/AdapterTest.php
458-
459-
-
460-
message: '#^Class PhpDb\\Adapter\\Platform\\Postgresql not found\.$#'
461-
identifier: class.notFound
462-
count: 1
463-
path: test/unit/Adapter/AdapterTest.php
464-
465-
-
466-
message: '#^Class PhpDb\\Adapter\\Platform\\SqlServer not found\.$#'
467-
identifier: class.notFound
468-
count: 1
469-
path: test/unit/Adapter/AdapterTest.php
470-
471-
-
472-
message: '#^Class PhpDb\\Adapter\\Platform\\Sqlite not found\.$#'
473-
identifier: class.notFound
474-
count: 1
475-
path: test/unit/Adapter/AdapterTest.php
476-
477387
-
478388
message: '#^Expression "\$this\-\>adapter\-\>foo" on a separate line does not do anything\.$#'
479389
identifier: expr.resultUnused
@@ -612,6 +522,42 @@ parameters:
612522
count: 2
613523
path: test/unit/RowGateway/AbstractRowGatewayTest.php
614524

525+
-
526+
message: '#^Static call to instance method PhpDbTest\\Sql\\AbstractSqlFunctionalTestCase\:\:createColumn\(\)\.$#'
527+
identifier: method.staticCall
528+
count: 2
529+
path: test/unit/Sql/AbstractSqlFunctionalTestCase.php
530+
531+
-
532+
message: '#^Static call to instance method PhpDbTest\\Sql\\AbstractSqlFunctionalTestCase\:\:createTable\(\)\.$#'
533+
identifier: method.staticCall
534+
count: 2
535+
path: test/unit/Sql/AbstractSqlFunctionalTestCase.php
536+
537+
-
538+
message: '#^Static call to instance method PhpDbTest\\Sql\\AbstractSqlFunctionalTestCase\:\:delete\(\)\.$#'
539+
identifier: method.staticCall
540+
count: 1
541+
path: test/unit/Sql/AbstractSqlFunctionalTestCase.php
542+
543+
-
544+
message: '#^Static call to instance method PhpDbTest\\Sql\\AbstractSqlFunctionalTestCase\:\:insert\(\)\.$#'
545+
identifier: method.staticCall
546+
count: 1
547+
path: test/unit/Sql/AbstractSqlFunctionalTestCase.php
548+
549+
-
550+
message: '#^Static call to instance method PhpDbTest\\Sql\\AbstractSqlFunctionalTestCase\:\:select\(\)\.$#'
551+
identifier: method.staticCall
552+
count: 15
553+
path: test/unit/Sql/AbstractSqlFunctionalTestCase.php
554+
555+
-
556+
message: '#^Static call to instance method PhpDbTest\\Sql\\AbstractSqlFunctionalTestCase\:\:update\(\)\.$#'
557+
identifier: method.staticCall
558+
count: 3
559+
path: test/unit/Sql/AbstractSqlFunctionalTestCase.php
560+
615561
-
616562
message: '#^PHPDoc tag @var with type PhpDb\\Sql\\Ddl\\Column\\ColumnInterface is not subtype of native type PHPUnit\\Framework\\MockObject\\MockObject\.$#'
617563
identifier: varTag.nativeType
@@ -666,42 +612,6 @@ parameters:
666612
count: 1
667613
path: test/unit/Sql/Platform/PlatformTest.php
668614

669-
-
670-
message: '#^Static call to instance method PhpDbTest\\Sql\\AbstractSqlFunctionalTestCase\:\:createColumn\(\)\.$#'
671-
identifier: method.staticCall
672-
count: 2
673-
path: test/unit/Sql/AbstractSqlFunctionalTestCase.php
674-
675-
-
676-
message: '#^Static call to instance method PhpDbTest\\Sql\\AbstractSqlFunctionalTestCase\:\:createTable\(\)\.$#'
677-
identifier: method.staticCall
678-
count: 2
679-
path: test/unit/Sql/AbstractSqlFunctionalTestCase.php
680-
681-
-
682-
message: '#^Static call to instance method PhpDbTest\\Sql\\AbstractSqlFunctionalTestCase\:\:delete\(\)\.$#'
683-
identifier: method.staticCall
684-
count: 1
685-
path: test/unit/Sql/AbstractSqlFunctionalTestCase.php
686-
687-
-
688-
message: '#^Static call to instance method PhpDbTest\\Sql\\AbstractSqlFunctionalTestCase\:\:insert\(\)\.$#'
689-
identifier: method.staticCall
690-
count: 1
691-
path: test/unit/Sql/AbstractSqlFunctionalTestCase.php
692-
693-
-
694-
message: '#^Static call to instance method PhpDbTest\\Sql\\AbstractSqlFunctionalTestCase\:\:select\(\)\.$#'
695-
identifier: method.staticCall
696-
count: 15
697-
path: test/unit/Sql/AbstractSqlFunctionalTestCase.php
698-
699-
-
700-
message: '#^Static call to instance method PhpDbTest\\Sql\\AbstractSqlFunctionalTestCase\:\:update\(\)\.$#'
701-
identifier: method.staticCall
702-
count: 3
703-
path: test/unit/Sql/AbstractSqlFunctionalTestCase.php
704-
705615
-
706616
message: '#^Expression "\$this\-\>mockUpdate" on a separate line does not do anything\.$#'
707617
identifier: expr.resultUnused

test/integration/Adapter/Driver/Pdo/Postgresql/AdapterTest.php

Lines changed: 0 additions & 14 deletions
This file was deleted.

test/integration/Adapter/Driver/Pdo/Postgresql/AdapterTrait.php

Lines changed: 0 additions & 36 deletions
This file was deleted.

test/integration/Adapter/Driver/Pdo/Postgresql/TableGatewayTest.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)