Created
October 26, 2013 22:02
-
-
Save chartjes/7175117 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return array( | |
array('foo', 'bar', 'baz'), | |
array('alpha', 'beta', 'gamma') | |
); |
Per your comments, hashing is not allowed.
However, when I try the code below, the same thing happens, which is contrary to what the gist would suggest:
/** preLoaderArrayDataProvider
*
* @return array
*/
public function preLoaderArrayDataProvider()
{
return array(
array(
'http://yahoo.com',
'http://google.com',
'http://facebook.com',
'http://twitter.com'
),
array(
'http://jquery.com',
'http://jqueryui.com'
)
);
}
/** preLoaderArrayDataProvider
*
* @return array
*/
public function preLoaderArrayDataProvider()
{
return array(
array(
array(
'http://yahoo.com',
'http://google.com',
'http://facebook.com',
'http://twitter.com'
)
),
array(
array(
'http://jquery.com',
'http://jqueryui.com'
)
)
);
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think there is either a bug in PHPUnit, or a setting gone awry, as this gets tokenized recursively.
Here's the code I was sampling:
You would expect $array to be the first array, but it is actually 'http://yahoo.com'.