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
FROM debian:buster | |
# backports is required for checkinstall | |
RUN echo 'deb http://deb.debian.org/debian buster-backports main' > /etc/apt/sources.list.d/backports.list | |
RUN apt-get update && apt-get install -y \ | |
curl build-essential dh-autoreconf pkg-config \ | |
libnl-3-dev libnl-genl-3-dev \ | |
libpcap-dev binutils-dev libreadline-dev \ | |
checkinstall |
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
<?php | |
// Define the function in the namespace that the caller is in. | |
namespace App { | |
function query() { | |
return call_user_func_array([$GLOBALS['__doubles']['query'], 'call'], func_get_args()); | |
} | |
} | |
namespace Tests { |
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
<?php | |
/** | |
* If you need something safer or more complete see https://github.com/lstrojny/functional-php, | |
* in particular, https://github.com/lstrojny/functional-php/blob/master/src/Functional/FlatMap.php | |
* | |
* @param Callable $fn Mapping function that returns an array | |
* @param array $array Data over which $fn will be mapped | |
* @return array | |
*/ |