[ 'function' => [ $this, 'doElseIf' ] ],
[ 'function' => [ $this, 'doSwitch' ] ],
] );
- print $this->getFormattedResults();
}
// bench function 1
- function doElseIf() {
+ protected function doElseIf() {
$a = 'z';
if ( $a == 'a' ) {
} elseif ( $a == 'b' ) {
}
// bench function 2
- function doSwitch() {
+ protected function doSwitch() {
$a = 'z';
switch ( $a ) {
case 'b':