src/Block/Group.php
public function runCallbacks($name, $recursive = true)
    {
        $instances = $recursive ? $this->parents(true) : [$this];
        if (strncmp($name, 'after', 5) === 0) {
            $instances = array_reverse($instances);
        }
        foreach ($instances as $instance) {
            foreach ($instance->_callbacks[$name] as $closure) {
                $this->_suite->runBlock($this, $closure, $name);
            }
        }
    }
public function runCallbacks($name, $recursive = true)
    {
        $instances = $recursive ? $this->parents(true) : [$this];
        if (strncmp($name, 'after', 5) === 0) {
            $instances = array_reverse($instances);
        }
        foreach ($instances as $instance) {
            foreach ($instance->_callbacks[$name] as $closure) {
                $this->_suite->runBlock($this, $closure, $name);
            }
        }
    }
public function runCallbacks ( $ name , $ recursive = true ) { $ instances = $ recursive ? $ this -> parents ( true ) : [ $ this ] ; if ( strncmp ( $ name , 'after' , 5 ) === 0 ) { $ instances = array_reverse ( $ instances ) ; } foreach ( $ instances as $ instance ) { foreach ( $ instance -> _callbacks [ $ name ] as $ closure ) { $ this -> _suite -> runBlock ( $ this , $ closure , $ name ) ; } } }
Runs a callback.

@param string $name The name of the callback (i.e `'beforeEach'` or `'afterEach'`).
Runs a callback .