You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 4, 2022. It is now read-only.
Since it is possible to use multiple `@dataProvider` annotations for test methods, these generic data providers allow for reuse and composition of data providers:
@@ -181,6 +182,12 @@ For examples, see [`Ergebnis\Test\Util\Test\Unit\DataProvider\NullProviderTest`]
181
182
182
183
For examples, see [`Ergebnis\Test\Util\Test\Unit\DataProvider\ObjectProviderTest`](test/Unit/DataProvider/ObjectProviderTest.php).
183
184
185
+
#### `DataProvider\ResourceProvider`
186
+
187
+
*`resource()` provides a `resource`
188
+
189
+
For examples, see [`Ergebnis\Test\Util\Test\Unit\DataProvider\ResourceProviderTest`](test/Unit/DataProvider/ResourceProviderTest.php).
Copy file name to clipboardExpand all lines: phpstan-baseline.neon
+115
Original file line number
Diff line number
Diff line change
@@ -575,6 +575,121 @@ parameters:
575
575
count:1
576
576
path:src/DataProvider/ObjectProvider.php
577
577
578
+
-
579
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:faker\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
580
+
count:1
581
+
path:src/DataProvider/ResourceProvider.php
582
+
583
+
-
584
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertClassesAreAbstractOrFinal\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
585
+
count:1
586
+
path:src/DataProvider/ResourceProvider.php
587
+
588
+
-
589
+
message:"#^Parameter \\#1 \\$argument of class ReflectionClass constructor expects class\\-string\\<T of object\\>\\|T of object, string given\\.$#"
590
+
count:2
591
+
path:src/DataProvider/ResourceProvider.php
592
+
593
+
-
594
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertClassesHaveTests\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
595
+
count:1
596
+
path:src/DataProvider/ResourceProvider.php
597
+
598
+
-
599
+
message:"#^Call to an undefined static method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertEmpty\\(\\)\\.$#"
600
+
count:2
601
+
path:src/DataProvider/ResourceProvider.php
602
+
603
+
-
604
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertClassyConstructsSatisfySpecification\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
605
+
count:1
606
+
path:src/DataProvider/ResourceProvider.php
607
+
608
+
-
609
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertClassExists\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
610
+
count:1
611
+
path:src/DataProvider/ResourceProvider.php
612
+
613
+
-
614
+
message:"#^Call to an undefined static method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertTrue\\(\\)\\.$#"
615
+
count:11
616
+
path:src/DataProvider/ResourceProvider.php
617
+
618
+
-
619
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertClassExtends\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
620
+
count:1
621
+
path:src/DataProvider/ResourceProvider.php
622
+
623
+
-
624
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertClassImplementsInterface\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
625
+
count:1
626
+
path:src/DataProvider/ResourceProvider.php
627
+
628
+
-
629
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertClassIsAbstract\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
630
+
count:1
631
+
path:src/DataProvider/ResourceProvider.php
632
+
633
+
-
634
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertClassIsFinal\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
635
+
count:1
636
+
path:src/DataProvider/ResourceProvider.php
637
+
638
+
-
639
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertClassSatisfiesSpecification\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
640
+
count:1
641
+
path:src/DataProvider/ResourceProvider.php
642
+
643
+
-
644
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertClassUsesTrait\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
645
+
count:1
646
+
path:src/DataProvider/ResourceProvider.php
647
+
648
+
-
649
+
message:"#^Call to an undefined static method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertContains\\(\\)\\.$#"
650
+
count:1
651
+
path:src/DataProvider/ResourceProvider.php
652
+
653
+
-
654
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertInterfaceExists\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
655
+
count:1
656
+
path:src/DataProvider/ResourceProvider.php
657
+
658
+
-
659
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertInterfaceExtends\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
660
+
count:1
661
+
path:src/DataProvider/ResourceProvider.php
662
+
663
+
-
664
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertInterfaceSatisfiesSpecification\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
665
+
count:1
666
+
path:src/DataProvider/ResourceProvider.php
667
+
668
+
-
669
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertTraitExists\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
670
+
count:1
671
+
path:src/DataProvider/ResourceProvider.php
672
+
673
+
-
674
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:assertTraitSatisfiesSpecification\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
675
+
count:1
676
+
path:src/DataProvider/ResourceProvider.php
677
+
678
+
-
679
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:provideDataForValues\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
680
+
count:1
681
+
path:src/DataProvider/ResourceProvider.php
682
+
683
+
-
684
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:provideDataForValuesWhere\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
685
+
count:1
686
+
path:src/DataProvider/ResourceProvider.php
687
+
688
+
-
689
+
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\ResourceProvider\\:\\:provideDataForValuesWhereNot\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
690
+
count:1
691
+
path:src/DataProvider/ResourceProvider.php
692
+
578
693
-
579
694
message:"#^Method Ergebnis\\\\Test\\\\Util\\\\DataProvider\\\\StringProvider\\:\\:faker\\(\\) is protected, but since the containing class is final, it can be private\\.$#"
0 commit comments