示例#1
0
 public function run()
 {
     Spec::write("\n", true);
     //xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);
     foreach ($this->files as $file) {
         require $file;
         Spec::setDescribeOutput($this->descriptiveOutput);
         Spec::run();
     }
     //xdebug_get_code_coverage();
     Spec::results();
 }
示例#2
0
文件: spec.php 项目: ahmed555/Cupcake
 public static function clear()
 {
     self::$describe_specs = array();
     self::$results = array("pass" => 0, "fail" => 0, "pending" => 0);
 }