filter = new V17(); } public function tearDown(): void { } public function createUpdateRecoveryProvider() { return [ 'remove passwordAgain' => [ [ 'userId' => 'test', 'secret' => 'test', 'password' => '123456', 'passwordAgain' => '123456' ], [ 'userId' => 'test', 'secret' => 'test', 'password' => '123456', ] ] ]; } /** * @dataProvider createUpdateRecoveryProvider */ public function testUpdateRecovery(array $content, array $expected): void { $model = 'account.updateRecovery'; $result = $this->filter->parse($content, $model); $this->assertEquals($expected, $result); } }