From 3f4dc75ac551067b1e913039c74716b1a90cef78 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Sun, 15 Sep 2013 16:01:10 -0400 Subject: [PATCH] Do not attach earl report as listener if no filename specified. --- test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.php b/test.php index 6410346..6678c8a 100644 --- a/test.php +++ b/test.php @@ -487,7 +487,7 @@ class EarlReport extends PHPUnit_Util_Printer * @param PHPUnit_Framework_Test $result the result to attach to. */ public function attach(PHPUnit_Framework_TestResult $result) { - if(!$this->result) { + if(!$this->result && $this->filename) { $this->result = $result; $result->addListener($this); }