diff options
author | Vitor Mattos <vitor@php.rio> | 2023-01-04 11:02:21 -0300 |
---|---|---|
committer | Vitor Mattos <vitor@php.rio> | 2023-01-04 11:02:21 -0300 |
commit | 0d3a83b7e9d434719c9f046d4caeced42718dd8c (patch) | |
tree | c70006fb97f229f2898f5331a2fbf12fe2ece59c /tests | |
parent | 555b74c733e2e67ada66407013361d521e207d37 (diff) |
Fixes after code review
Signed-off-by: Vitor Mattos <vitor@php.rio>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/php/Service/RecordingServiceTest.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/php/Service/RecordingServiceTest.php b/tests/php/Service/RecordingServiceTest.php index 8b3f9daaf..5ddc1c2bf 100644 --- a/tests/php/Service/RecordingServiceTest.php +++ b/tests/php/Service/RecordingServiceTest.php @@ -71,29 +71,6 @@ class RecordingServiceTest extends TestCase { ); } - /** - * @dataProvider dataValidateFileName - */ - public function testValidateFileName(string $name, string $expected, string $exceptionMessage): void { - if ($exceptionMessage) { - $this->expectExceptionMessage($exceptionMessage); - } - $actual = $this->recordingService->validateFileName($name); - $this->assertEquals($expected, $actual); - } - - public function dataValidateFileName(): array { - return [ - ['a/b', '', 'file_name'], - ['a`b', '', 'file_name'], - ['a\b', '', 'file_name'], - ['../ab', '', 'file_name'], - ['{}ab', '', 'file_name'], - ['[]ab', '', 'file_name'], - ['a.b', 'a.b', ''], - ]; - } - /** @dataProvider dataValidateFileFormat */ public function testValidateFileFormat(string $fileName, string $content, string $exceptionMessage):void { if ($exceptionMessage) { |