diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-12-22 03:14:06 +0300 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-12-22 03:14:06 +0300 |
commit | e71f461adfd03b40504243104944fe6b70c79980 (patch) | |
tree | c991b7375e763d708fbaa437e97520ccec67f1a8 /tests | |
parent | 15dbbdfb9f5ffb2877abc30634f56820740129da (diff) |
it took me a long time to figure out where something was printed in the middle of any test...
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/PHPUnit/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php | 3 | ||||
-rw-r--r-- | tests/PHPUnit/System/VisitsInPastInvalidateOldReportsTest.php | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/PHPUnit/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php b/tests/PHPUnit/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php index a6ba72de3d..f8d3ab4f15 100755 --- a/tests/PHPUnit/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php +++ b/tests/PHPUnit/System/TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest.php @@ -97,7 +97,8 @@ class TwoVisitsWithCustomVariablesSegmentMatchVisitorTypeTest extends SystemTest $countBlobs = Db::get()->fetchOne($sql); if($expectedRows != $countBlobs) { - var_export(Db::get()->fetchAll("SELECT * FROM " . Common::prefixTable($table) . " ORDER BY name, idarchive ASC")); + $output = Db::get()->fetchAll("SELECT * FROM " . Common::prefixTable($table) . " ORDER BY name, idarchive ASC"); + var_export('This is debug output from ' . __CLASS__ . ' in case of an error: ' . $output); } $this->assertEquals($expectedRows, $countBlobs, "$table: %s"); } diff --git a/tests/PHPUnit/System/VisitsInPastInvalidateOldReportsTest.php b/tests/PHPUnit/System/VisitsInPastInvalidateOldReportsTest.php index 15149f0ec5..859eda1646 100644 --- a/tests/PHPUnit/System/VisitsInPastInvalidateOldReportsTest.php +++ b/tests/PHPUnit/System/VisitsInPastInvalidateOldReportsTest.php @@ -22,6 +22,9 @@ use Exception; */ class VisitsInPastInvalidateOldReportsTest extends SystemTestCase { + /** + * @var TwoSitesVisitsInPast + */ public static $fixture = null; // initialized below class definition /** |