Skip to content

Commit 2c63fc7

Browse files
fix: deprecations on phpunit tests
1 parent 8daed39 commit 2c63fc7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/Symfony/Bundle/Command/OpenApiCommandTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ protected function setUp(): void
3636
$application->setAutoExit(false);
3737

3838
$this->tester = new ApplicationTester($application);
39+
40+
$this->handleDeprecations();
3941
}
4042

4143
public function testExecute(): void
@@ -110,4 +112,12 @@ private function assertYaml(string $data): void
110112
}
111113
$this->addToAssertionCount(1);
112114
}
115+
116+
/**
117+
* TODO Remove in 4.0
118+
*/
119+
private function handleDeprecations(): void
120+
{
121+
$this->expectDeprecationMessage('The "openapiContext" option is deprecated, use "openapi" instead.');
122+
}
113123
}

0 commit comments

Comments
 (0)