src/Block/Specification.php
protected function _execute()
    {
        $result = null;
        $spec = function () {
            $this->_expectations = [];
            $closure = $this->_closure;
            $result = $this->_suite->runBlock($this, $closure, 'specification');
            foreach ($this->_expectations as $expectation) {
                $this->_passed = $expectation->process() && $this->_passed;
            }
            return $result;
        };

        $suite = $this->suite();
        return $spec();
    }
protected function _execute()
    {
        $result = null;
        $spec = function () {
            $this->_expectations = [];
            $closure = $this->_closure;
            $result = $this->_suite->runBlock($this, $closure, 'specification');
            foreach ($this->_expectations as $expectation) {
                $this->_passed = $expectation->process() && $this->_passed;
            }
            return $result;
        };

        $suite = $this->suite();
        return $spec();
    }
protected function _execute ( ) { $ result = null ; $ spec = function ( ) { $ this -> _expectations = [ ] ; $ closure = $ this -> _closure ; $ result = $ this -> _suite -> runBlock ( $ this , $ closure , 'specification' ) ; foreach ( $ this -> _expectations as $ expectation ) { $ this -> _passed = $ expectation -> process ( ) && $ this -> _passed ; } return $ result ; } ; $ suite = $ this -> suite ( ) ; return $ spec ( ) ; }
Spec execution helper.
Spec execution helper .