Skip to content

Instantly share code, notes, and snippets.

@BinaryKitten
BinaryKitten / phpunit.bat
Created September 3, 2021 17:25 — forked from jrfnl/phpunit.bat
PHPUnit PHP/PHPUnit switching script example
@echo off
::
:: PHP ??? have Xdebug + Blackfire.
:: PHP 7.4.14 has Xdebug with coverage
:: PHP 7.4.15 has Xdebug with develop + trace
::
:set PHPBIN=C:\wamp\bin\phpcli_x86\php5.2.17\php.exe
:set PHPBIN=C:\wamp\bin\phpcli_x86\php5.3.29\php.exe
:set PHPBIN=C:\wamp\bin\phpcli_x86\php5.4.45\php.exe
:set PHPBIN=C:\wamp\bin\php\php5.5.38\php.exe
<?php
return [
'version' => '1.0.0',
'table' => 'table_name',
'info' => [
'item' => [
'name' => 'cherry',
'value' => 'pick'
]
<?php $this->form->prepare(); ?>
<div class="row">
<!-- Contenido seleccionado en el menu de la izquierda -->
<div class="col-md-9 col-md-push-3">
<div id="navigation_wrapper" style="display:none" class="navigation_content">
<?php echo $this->form()->openTag($this->form) . PHP_EOL; ?>
<?php foreach($this->form->getElements() as $formElement):?>
<div class="form-group">

Microframework

This is a PHP microframework based on anonymous functions.

Features

  • requested URLs matched using regular expressions
  • request methods (matches using regular expressions too)
  • differenced FIFO queues for each $priority
  • command line usage
  • backward compatibility
  • integrated Dependency Injection system
  • settings system
<?php
namespace Zend\Mvc {
class MvcEvent {
public function getRequest() {}
public function getResponse() {}
public function getApplication() {}
}
}