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

Commit

Permalink
Add asserts for unknown fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Sep 3, 2015
1 parent 1d88c70 commit 2d18e15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/BaseInputFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ public function testSetDataAndGetRawValueGetValue(
$this->assertEquals($expectedInvalidInputs, $inputFilter->getInvalidInput(), 'getInvalidInput() value not match');
$this->assertEquals($expectedValidInputs, $inputFilter->getValidInput(), 'getValidInput() value not match');
$this->assertEquals($expectedMessages, $inputFilter->getMessages(), 'getMessages() value not match');

// ** Check unknown fields **
$this->assertFalse($inputFilter->hasUnknown(), 'hasUnknown() value not match');
$this->assertEmpty($inputFilter->getUnknown(), 'getUnknown() value not match');
}

/**
Expand Down

0 comments on commit 2d18e15

Please sign in to comment.