<?php /** * default settings */ namespace Preview; return array("reporter" => "\\Preview\\Reporter\\Spec", "assertion_exceptions" => array("\\Exception"), "convert_error_to_exception" => true, "fail_fast" => false, "color_support" => Preview::is_tty(), "full_backtrace" => false, "test_groups" => array(), "exclude_groups" => array(), "title" => null, "order" => false, "custom_filters" => array(), "use_implicit_context" => !Preview::is_php53(), "spec_file_regexp" => '/_spec\\.php/', "shared_dir_name" => "shared", "before_hook" => null, "after_hook" => null, "before_each_hook" => null, "after_each_hook" => null);
/** * Update * * @param array $options * @return null */ public function update($options) { $attrs = array_keys(get_object_vars($this)); foreach ($options as $key => $value) { if (in_array($key, $attrs)) { $this->{$key} = $value; } } if (is_string($this->reporter)) { $this->reporter = new $this->reporter(); } /* * Since for PHP version < 5.4 $this is not available for closure, * We can't use this feature, instead we explicitly pass * the context object as an argument to callback. */ if (Preview::is_php53()) { $this->use_implicit_context = false; } if (!Preview::is_tty()) { $this->color_support = false; } }