From d8cd9454d4f213acfb8df0d155fc4da9ae0a7a81 Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Tue, 28 Jul 2015 16:12:52 +0000 Subject: starting to prepare the requirement of php 5.4 --- .../PHPUnit/System/ManyVisitorsOneWebsiteTest.php | 90 ++++++++++------------ 1 file changed, 42 insertions(+), 48 deletions(-) (limited to 'tests/PHPUnit/System/ManyVisitorsOneWebsiteTest.php') diff --git a/tests/PHPUnit/System/ManyVisitorsOneWebsiteTest.php b/tests/PHPUnit/System/ManyVisitorsOneWebsiteTest.php index 35daba0b5d..d1301d728a 100755 --- a/tests/PHPUnit/System/ManyVisitorsOneWebsiteTest.php +++ b/tests/PHPUnit/System/ManyVisitorsOneWebsiteTest.php @@ -115,54 +115,48 @@ class ManyVisitorsOneWebsiteTest extends SystemTestCase )), ); - // Randomly fails on 5.3 - if(!self::isPhpVersion53()) { - - $apiToTest[] = array('Live.getLastVisitsDetails', array( - 'idSite' => $idSite, - 'date' => $dateString, - 'periods' => 'month', - 'testSuffix' => '_Live.getLastVisitsDetails_sortDesc', - 'otherRequestParameters' => array('filter_sort_order' => 'desc', 'filter_limit' => 7) - )); - - // #5950 - $apiToTest[] = array('Live.getLastVisitsDetails', array( - 'idSite' => $idSite, - 'date' => $dateString, - 'periods' => 'month', - 'testSuffix' => '_Live.getLastVisitsDetails_sortByIdVisit', - 'otherRequestParameters' => array('filter_sort_order' => 'desc', 'filter_sort_column' => 'idVisit', 'filter_limit' => 7) - )); - - // #7458 - $apiToTest[] = array('Live.getLastVisitsDetails', array( - 'idSite' => $idSite, - 'date' => $dateString, - 'periods' => 'month', - 'testSuffix' => '_Live.getLastVisitsDetails_offsetAndLimit_1', - 'otherRequestParameters' => array('filter_offset' => '1', 'filter_limit' => 3) - )); - $apiToTest[] = array('Live.getLastVisitsDetails', array( - 'idSite' => $idSite, - 'date' => $dateString, - 'periods' => 'month', - 'testSuffix' => '_Live.getLastVisitsDetails_offsetAndLimit_2', - 'otherRequestParameters' => array('filter_offset' => '4', 'filter_limit' => 3) - )); - - // #8324 - // testing filter_excludelowpop and filter_excludelowpop_value - $apiToTest[] = array('UserCountry.getCountry', array( - 'idSite' => $idSite, - 'date' => $dateString, - 'periods' => 'month', - 'testSuffix' => '_getCountry_with_filter_excludelowpop', - 'otherRequestParameters' => array('filter_excludelowpop' => 'nb_visits', 'filter_excludelowpop_value' => 5) - )); - - - } + $apiToTest[] = array('Live.getLastVisitsDetails', array( + 'idSite' => $idSite, + 'date' => $dateString, + 'periods' => 'month', + 'testSuffix' => '_Live.getLastVisitsDetails_sortDesc', + 'otherRequestParameters' => array('filter_sort_order' => 'desc', 'filter_limit' => 7) + )); + + // #5950 + $apiToTest[] = array('Live.getLastVisitsDetails', array( + 'idSite' => $idSite, + 'date' => $dateString, + 'periods' => 'month', + 'testSuffix' => '_Live.getLastVisitsDetails_sortByIdVisit', + 'otherRequestParameters' => array('filter_sort_order' => 'desc', 'filter_sort_column' => 'idVisit', 'filter_limit' => 7) + )); + + // #7458 + $apiToTest[] = array('Live.getLastVisitsDetails', array( + 'idSite' => $idSite, + 'date' => $dateString, + 'periods' => 'month', + 'testSuffix' => '_Live.getLastVisitsDetails_offsetAndLimit_1', + 'otherRequestParameters' => array('filter_offset' => '1', 'filter_limit' => 3) + )); + $apiToTest[] = array('Live.getLastVisitsDetails', array( + 'idSite' => $idSite, + 'date' => $dateString, + 'periods' => 'month', + 'testSuffix' => '_Live.getLastVisitsDetails_offsetAndLimit_2', + 'otherRequestParameters' => array('filter_offset' => '4', 'filter_limit' => 3) + )); + + // #8324 + // testing filter_excludelowpop and filter_excludelowpop_value + $apiToTest[] = array('UserCountry.getCountry', array( + 'idSite' => $idSite, + 'date' => $dateString, + 'periods' => 'month', + 'testSuffix' => '_getCountry_with_filter_excludelowpop', + 'otherRequestParameters' => array('filter_excludelowpop' => 'nb_visits', 'filter_excludelowpop_value' => 5) + )); // this also fails on all PHP versions, it seems randomly. // $apiToTest[] = array('Live.getLastVisitsDetails', array( -- cgit v1.2.3