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
Acl/AclTest.php | |
Amf/AllTests.php | |
Application/AllTests.php | |
Auth/AllTests.php | |
Barcode/AllTests.php | |
Cache/AllTests.php | |
Captcha/AllTests.php | |
CodeGenerator/AllTests.php | |
Config/AllTests.php | |
Console/AllTests.php |
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 | |
array( | |
'default' => array( | |
'type' => 'Segment', | |
'options' => array( | |
'route' => '/[:controller[/:action]]', | |
'constraints' => array( | |
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*', | |
'action' => '[a-zA-Z][a-zA-Z0-9_-]*', | |
), |
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 | |
namespace Guest; | |
use Zend\EventManager\StaticEventManager; | |
class Module | |
{ | |
public function init() | |
{ | |
$events = StaticEventManager::getInstance(); |
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 (!($env = getenv('APPLICATION_ENV'))) { | |
$env = 'local'; | |
} | |
$glob = glob(__DIR__ . "/config/autoload/config.{global,$env}.php"); |
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
1003 test:master % php ~/Downloads/phpunit-3.6.4.phar | |
PHP Warning: Missing argument 1 for text_template_autoload(), called in phar:///home/matthew/Downloads/phpunit-3.6.4.phar/PHP/CodeCoverage/Filter.php on line 96 and defined in /usr/local/zend/share/pear/Text/Template/Autoload.php on line 46 | |
Warning: Missing argument 1 for text_template_autoload(), called in phar:///home/matthew/Downloads/phpunit-3.6.4.phar/PHP/CodeCoverage/Filter.php on line 96 and defined in /usr/local/zend/share/pear/Text/Template/Autoload.php on line 46 | |
PHP Notice: Undefined variable: class in /usr/local/zend/share/pear/Text/Template/Autoload.php on line 58 | |
Notice: Undefined variable: class in /usr/local/zend/share/pear/Text/Template/Autoload.php on line 58 | |
PHP Catchable fatal error: Argument 1 passed to PHP_CodeCoverage_Filter::addFilesToBlacklist() must be an array, null given, called in phar:///home/matthew/Downloads/phpunit-3.6.4.phar/PHP/CodeCoverage/Filter.php on line 96 and defined in phar:///home/matthew/Downloads/phpunit- |
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 | |
function($e) use ($validator) { | |
$manager = $e->getTarget(); | |
foreach ($manager->getLoadedModules() as $module) { | |
if (!$module instanceof ServiceConsumer) { | |
continue; | |
} | |
$validator->merge($module->getServiceValidatorMap()); | |
} |
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 ($foo == 'bar' | |
|| $bar == 'baz' | |
&& (!isset($baz) || empty($bat)) | |
) { | |
} |
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
$constants = get_defined_constants(); | |
array_walk(array_keys($constants), function($key) use (&$constants) { | |
if ('T_' != substr($key, 0, 2)) { | |
unset($constants[$key]); | |
} | |
}); | |
var_export($constants); |
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
/** | |
* Attempt to resolve a class or namespace based on imports | |
* | |
* @param string $class | |
* @return string String namespace/classname | |
*/ | |
protected function resolveClass($class) | |
{ | |
if ('\\' == substr($class, 0, 1)) { | |
return substr($class, 1); |
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
Benchmarks from current v2 master. | |
ZendBench\EventManager\MultipleEventIndividualSharedListener | |
Method Name Iterations Average Time Ops/second | |
------------ ------------ ----------------- ------------- | |
trigger : [ 5,000] [0.0001748194695] [5,720.18668] | |
ZendBench\EventManager\MultipleEventLocalListener | |
Method Name Iterations Average Time Ops/second |