Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 2d18e15

Browse files
committed
Add asserts for unknown fields
1 parent 1d88c70 commit 2d18e15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/BaseInputFilterTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ public function testSetDataAndGetRawValueGetValue(
317317
$this->assertEquals($expectedInvalidInputs, $inputFilter->getInvalidInput(), 'getInvalidInput() value not match');
318318
$this->assertEquals($expectedValidInputs, $inputFilter->getValidInput(), 'getValidInput() value not match');
319319
$this->assertEquals($expectedMessages, $inputFilter->getMessages(), 'getMessages() value not match');
320+
321+
// ** Check unknown fields **
322+
$this->assertFalse($inputFilter->hasUnknown(), 'hasUnknown() value not match');
323+
$this->assertEmpty($inputFilter->getUnknown(), 'getUnknown() value not match');
320324
}
321325

322326
/**

0 commit comments

Comments
 (0)