/** * The context keyword * Isolates the tests ran in $callback * * @param string $description * @param callback $callback * * @return void */ public function context($description, $callback) { // Ensure that the base context is clean for further contexts $state = clone $this->current_suite; $this->current_suite->add_description($description); $callback(); $this->current_suite = $state; }