php-censor/tests/PHPCensor/Plugin/Util/ExamplePluginConfig.php
2016-07-20 18:27:32 +06:00

22 lines
541 B
PHP

<?php
/**
* PHPCI - Continuous Integration for PHP
*
* @copyright Copyright 2015, Block 8 Limited.
* @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md
* @link https://www.phptesting.org/
*/
return function (PHPCensor\Plugin\Util\Factory $factory) {
$factory->registerResource(
// This function will be called when the resource is needed.
function() {
return [
'bar' => "Hello",
];
},
"requiredArgument",
null
);
};