Skip to content

Commit f5eacaa

Browse files
committed
fix: conflict with orchestra test bench
1 parent 7f0397f commit f5eacaa

File tree

3 files changed

+138
-4
lines changed

3 files changed

+138
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
"refactor": "php vendor/bin/rector process --config=rector.php",
156156
"refactor:ci": "php vendor/bin/rector process --config=rector.php --dry-run --ansi",
157157
"stan": "php vendor/bin/phpstan analyse --memory-limit=2G",
158-
"stan:baseline": "php vendor/bin/phpstan analyse --generate-baseline --memory-limit=2G --allow-empty-baseline",
158+
"stan:baseline": "php vendor/bin/phpstan analyse --generate-baseline --memory-limit=2G --allow-empty-baseline -vv",
159159
"stan:ci": "php vendor/bin/phpstan analyse --memory-limit=2G --error-format=github",
160160
"test": [
161161
"@putenv XDEBUG_MODE=coverage",

phpstan-baseline.neon

Lines changed: 135 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,136 @@
11
parameters:
2-
ignoreErrors: []
2+
ignoreErrors:
3+
-
4+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertCount\\(\\) with 4 and \\*NEVER\\* will always evaluate to false\\.$#"
5+
count: 1
6+
path: tests/src/Bridge/Laravel/Console/Commands/Migrations/MigrateCommandTest.php
7+
8+
-
9+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertCount\\(\\) with 4 and \\*NEVER\\* will always evaluate to false\\.$#"
10+
count: 1
11+
path: tests/src/Bridge/Laravel/Console/Commands/Migrations/ReplayCommandTest.php
12+
13+
-
14+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertCount\\(\\) with 4 and \\*NEVER\\* will always evaluate to false\\.$#"
15+
count: 1
16+
path: tests/src/Bridge/Laravel/Console/Commands/Migrations/RollbackCommandTest.php
17+
18+
-
19+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\Schema\\\\\\\\GeneratorInterface' and Cycle\\\\Annotated\\\\Embeddings will always evaluate to true\\.$#"
20+
count: 1
21+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterAnnotatedTest.php
22+
23+
-
24+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\Schema\\\\\\\\GeneratorInterface' and Cycle\\\\Annotated\\\\Entities will always evaluate to true\\.$#"
25+
count: 1
26+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterAnnotatedTest.php
27+
28+
-
29+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\Schema\\\\\\\\GeneratorInterface' and Cycle\\\\Annotated\\\\MergeColumns will always evaluate to true\\.$#"
30+
count: 1
31+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterAnnotatedTest.php
32+
33+
-
34+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\Schema\\\\\\\\GeneratorInterface' and Cycle\\\\Annotated\\\\MergeIndexes will always evaluate to true\\.$#"
35+
count: 1
36+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterAnnotatedTest.php
37+
38+
-
39+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\Schema\\\\\\\\GeneratorInterface' and Cycle\\\\Annotated\\\\TableInheritance will always evaluate to true\\.$#"
40+
count: 1
41+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterAnnotatedTest.php
42+
43+
-
44+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Spiral\\\\\\\\Attributes\\\\\\\\ReaderInterface' and Spiral\\\\Attributes\\\\ReaderInterface will always evaluate to true\\.$#"
45+
count: 1
46+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterAnnotatedTest.php
47+
48+
-
49+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Spiral\\\\\\\\Attributes\\\\\\\\Internal\\\\\\\\Instantiator\\\\\\\\InstantiatorInterface' and Spiral\\\\Attributes\\\\Internal\\\\Instantiator\\\\InstantiatorInterface will always evaluate to true\\.$#"
50+
count: 1
51+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterAttributesTest.php
52+
53+
-
54+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\Database\\\\\\\\Config\\\\\\\\DatabaseConfig' and Cycle\\\\Database\\\\Config\\\\DatabaseConfig will always evaluate to true\\.$#"
55+
count: 1
56+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterConfigsTest.php
57+
58+
-
59+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\Migrations\\\\\\\\Config\\\\\\\\MigrationConfig' and Cycle\\\\Migrations\\\\Config\\\\MigrationConfig will always evaluate to true\\.$#"
60+
count: 1
61+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterConfigsTest.php
62+
63+
-
64+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Spiral\\\\\\\\Tokenizer\\\\\\\\Config\\\\\\\\TokenizerConfig' and Spiral\\\\Tokenizer\\\\Config\\\\TokenizerConfig will always evaluate to true\\.$#"
65+
count: 1
66+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterConfigsTest.php
67+
68+
-
69+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'WayOfDev\\\\\\\\Cycle\\\\\\\\Schema\\\\\\\\Config\\\\\\\\SchemaConfig' and WayOfDev\\\\Cycle\\\\Schema\\\\Config\\\\SchemaConfig will always evaluate to true\\.$#"
70+
count: 1
71+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterConfigsTest.php
72+
73+
-
74+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\Database\\\\\\\\DatabaseInterface' and Cycle\\\\Database\\\\DatabaseInterface will always evaluate to true\\.$#"
75+
count: 1
76+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterDatabaseTest.php
77+
78+
-
79+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\Database\\\\\\\\DatabaseProviderInterface' and Cycle\\\\Database\\\\DatabaseProviderInterface will always evaluate to true\\.$#"
80+
count: 1
81+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterDatabaseTest.php
82+
83+
-
84+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\Migrations\\\\\\\\Migrator' and Cycle\\\\Migrations\\\\Migrator will always evaluate to true\\.$#"
85+
count: 1
86+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterMigrationsTest.php
87+
88+
-
89+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\Migrations\\\\\\\\RepositoryInterface' and Cycle\\\\Migrations\\\\RepositoryInterface will always evaluate to true\\.$#"
90+
count: 1
91+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterMigrationsTest.php
92+
93+
-
94+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\ORM\\\\\\\\FactoryInterface' and Cycle\\\\ORM\\\\FactoryInterface will always evaluate to true\\.$#"
95+
count: 1
96+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterORMTest.php
97+
98+
-
99+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\ORM\\\\\\\\ORMInterface' and Cycle\\\\ORM\\\\ORMInterface will always evaluate to true\\.$#"
100+
count: 1
101+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterORMTest.php
102+
103+
-
104+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Cycle\\\\\\\\ORM\\\\\\\\SchemaInterface' and Cycle\\\\ORM\\\\SchemaInterface will always evaluate to true\\.$#"
105+
count: 1
106+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterSchemaTest.php
107+
108+
-
109+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'WayOfDev\\\\\\\\Cycle\\\\\\\\Contracts\\\\\\\\CacheManager' and WayOfDev\\\\Cycle\\\\Contracts\\\\CacheManager will always evaluate to true\\.$#"
110+
count: 1
111+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterSchemaTest.php
112+
113+
-
114+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'WayOfDev\\\\\\\\Cycle\\\\\\\\Contracts\\\\\\\\GeneratorLoader' and WayOfDev\\\\Cycle\\\\Contracts\\\\GeneratorLoader will always evaluate to true\\.$#"
115+
count: 1
116+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterSchemaTest.php
117+
118+
-
119+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Spiral\\\\\\\\Tokenizer\\\\\\\\ClassesInterface' and Spiral\\\\Tokenizer\\\\ClassesInterface will always evaluate to true\\.$#"
120+
count: 1
121+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterTokenizerTest.php
122+
123+
-
124+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Spiral\\\\\\\\Tokenizer\\\\\\\\InvocationsInterface' and Spiral\\\\Tokenizer\\\\InvocationsInterface will always evaluate to true\\.$#"
125+
count: 1
126+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterTokenizerTest.php
127+
128+
-
129+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Spiral\\\\\\\\Tokenizer\\\\\\\\ScopedClassesInterface' and Spiral\\\\Tokenizer\\\\ScopedClassesInterface will always evaluate to true\\.$#"
130+
count: 1
131+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterTokenizerTest.php
132+
133+
-
134+
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Spiral\\\\\\\\Tokenizer\\\\\\\\Tokenizer' and Spiral\\\\Tokenizer\\\\Tokenizer will always evaluate to true\\.$#"
135+
count: 1
136+
path: tests/src/Bridge/Laravel/Providers/Registrators/RegisterTokenizerTest.php

src/Testing/Concerns/InteractsWithDatabase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function seed($class = 'Database\\Seeders\\DatabaseSeeder'): static
3737
*
3838
* @return $this
3939
*/
40-
protected function assertDatabaseHas($table, array $data, $connection = null): static
40+
protected function assertDatabaseHas($table, array $data = [], $connection = null): static
4141
{
4242
$this->assertThat(
4343
$table,
@@ -53,7 +53,7 @@ protected function assertDatabaseHas($table, array $data, $connection = null): s
5353
*
5454
* @return $this
5555
*/
56-
protected function assertDatabaseMissing($table, array $data, $connection = null): static
56+
protected function assertDatabaseMissing($table, array $data = [], $connection = null): static
5757
{
5858
$constraint = new ReverseConstraint(
5959
new HasInDatabase(app(DatabaseProviderInterface::class), $data)

0 commit comments

Comments
 (0)