Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function provideSetupData()
- {
- $testDataArray = [
- [ 'input' => [
- 'domain' => 'www.example.com'
- 'httpOnly' => true,
- ],
- 'expectation' => []
- ]
- ];
- $dataArray = [];
- foreach ($testDataArray as $testData) {
- $data = array();
- $data[0] = $testData['input'];
- $data[1] = $testData['expectation'];
- $dataArray[] = $data;
- }
- return $dataArray;
- }
- /**
- * @dataProvider provideSetupData
- */
- public function testSetupValid($setup, $expectation)
- {
- //Call the factory with $setup,
- //Call some assert methods based on either the setup data
- //Or the expectation data if it's not obvious from the input data.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement