Skip to content

Commit

Permalink
add another test for #147
Browse files Browse the repository at this point in the history
  • Loading branch information
rokob committed May 1, 2017
1 parent 523c0fe commit cb6af16
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions tests/DataBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,6 @@ public function scrubDataProvider()
return array_merge(array(
'flat data array' =>
$this->scrubFlatDataProvider(),
'plain numbers in an array' =>
$this->scrubJSONNumbersProvider(),
'recursive data array' =>
$this->scrubRecursiveDataProvider(),
'string encoded values' =>
Expand All @@ -231,17 +229,26 @@ public function scrubDataProvider()
$this->scrubRecursiveStringDataProvider(),
'string encoded recursive values in recursive array' =>
$this->scrubRecursiveStringRecursiveDataProvider()
), $this->scrubUrlDataProvider());
), $this->scrubUrlDataProvider(), $this->scrubJSONNumbersProvider());
}

private function scrubJSONNumbersProvider()
{
return array(
'[1023,1924]',
array(
'sensitive'
'plain array' => array(
'[1023,1924]',
array(
'sensitive'
),
'[1023,1924]'
),
'[1023,1924]'
'param equals array' => array(
'b=[1023,1924]',
array(
'sensitive'
),
'b=%5B1023%2C1924%5D'
)
);
}

Expand Down

0 comments on commit cb6af16

Please sign in to comment.