public function FillPdfLinkBooleansTestCase::dataProvider in FillPDF 7
Data provider for testBooleans().
Return value
array Array of test cases.
1 call to FillPdfLinkBooleansTestCase::dataProvider()
- FillPdfLinkBooleansTestCase::testBooleans in tests/
FillPdfLinkBooleansTestCase.test - Tests boolean query parameters.
File
- tests/
FillPdfLinkBooleansTestCase.test, line 61
Class
- FillPdfLinkBooleansTestCase
- Tests some unit test cases.
Code
public function dataProvider() {
return array(
array(
'1' => TRUE,
),
array(
'true' => TRUE,
),
array(
'True' => TRUE,
),
array(
'TRUE' => TRUE,
),
array(
'on' => TRUE,
),
array(
'On' => TRUE,
),
array(
'ON' => TRUE,
),
array(
'yes' => TRUE,
),
array(
'Yes' => TRUE,
),
array(
'YES' => TRUE,
),
array(
'0' => FALSE,
),
array(
'false' => FALSE,
),
array(
'False' => FALSE,
),
array(
'FALSE' => FALSE,
),
array(
'off' => FALSE,
),
array(
'Off' => FALSE,
),
array(
'OFF' => FALSE,
),
array(
'no' => FALSE,
),
array(
'No' => FALSE,
),
array(
'NO' => FALSE,
),
// These three are important, so should always be obeyed:
array(
'' => NULL,
),
array(
'foo' => NULL,
),
array(
'bar' => NULL,
),
// The following ones are less fortunate, so may be refactored:
array(
'-1' => NULL,
),
array(
'2' => NULL,
),
array(
'y' => NULL,
),
array(
'Y' => NULL,
),
array(
'n' => NULL,
),
array(
'N' => NULL,
),
);
}