| 1 | |
|---|
| 2 | <h2>Piwik unit tests</h2> |
|---|
| 3 | <p>Some of the tests require a database access. The database used for tests is different from your normal Piwik database. |
|---|
| 4 | You may need to create this database ; you can edit the settings for the unit tests database access in your config file |
|---|
| 5 | /config/global.ini.php</p> |
|---|
| 6 | <p><b>The database used in your tests is called "piwik_tests". Create it if necessary.</b></p> |
|---|
| 7 | <p><a href='core'>Run the tests by module</a></p> |
|---|
| 8 | <hr> |
|---|
| 9 | |
|---|
| 10 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> |
|---|
| 11 | <head> |
|---|
| 12 | <title>Piwik - running all tests</title> |
|---|
| 13 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
|---|
| 14 | <style type="text/css"> |
|---|
| 15 | .fail { background-color: inherit; color: red; }.pass { background-color: inherit; color: green; } pre { background-color: lightgray; color: inherit; } |
|---|
| 16 | </style> |
|---|
| 17 | </head> |
|---|
| 18 | <body> |
|---|
| 19 | <h1>Piwik - running all tests</h1> |
|---|
| 20 | The test class extends Test_Database: the test Piwik database is created once in the constructor, and all tables are truncated at the end of EACH unit test method.<br><span class="fail">Exception</span>: ../tests/core/API/DocumentationGenerator.test.php -> Test_Piwik_API_DocumentationGenerator -> test_callableApiMethods_doNotFail -> <strong>Unexpected exception of type [Zend_Db_Statement_Exception] with message [SQLSTATE[42S02]: Base table or view not found: 1146 Table 'piwik.piwiktests_site' doesn't exist] in [/var/www/piwik/libs/Zend/Db/Statement/Pdo.php line 227]</strong><br /> |
|---|
| 21 | <span class="fail">Exception</span>: ../tests/core/Date.test.php -> Test_Piwik_Date -> test_today -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 22 | <span class="fail">Fail</span>: ../tests/core/Date.test.php -> Test_Piwik_Date -> test_yesterday -> Equal expectation fails as [Boolean: false] does not match [Integer: 1246921200] at [/var/www/piwik/tests/core/Date.test.php line 37]<br /> |
|---|
| 23 | 5e1b126475b83c837305d3dd6cde107b<span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_getId -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 24 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_getLabel -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 25 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_day_isFinished_today -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 26 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_day_isFinished_yesterday -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 27 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_day_isFinished_tomorrow -> <strong>Unexpected exception of type [Exception] with message [Date format must be: YYYY-MM-DD, or 'today' or 'yesterday' or any keyword supported by the strtotime function (see http://php.net/strtotime for more information)] in [/var/www/piwik/core/Date.php line 39]</strong><br /> |
|---|
| 28 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_day_isFinished_31stfeb -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 29 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_day_getDateStart1 -> Equal expectation fails at character 0 with [0000-03-03] and [2007-03-03] at [/var/www/piwik/tests/core/Period.test.php line 104]<br /> |
|---|
| 30 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_day_getDateStart2 -> Equal expectation fails at character 0 with [0000-01-03] and [2007-01-03] at [/var/www/piwik/tests/core/Period.test.php line 120]<br /> |
|---|
| 31 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_day_getDateStart3 -> Equal expectation fails at character 0 with [0000-12-31] and [2007-12-31] at [/var/www/piwik/tests/core/Period.test.php line 136]<br /> |
|---|
| 32 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_day_getDateEnd1 -> Equal expectation fails at character 0 with [0000-03-03] and [2007-03-03] at [/var/www/piwik/tests/core/Period.test.php line 153]<br /> |
|---|
| 33 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_day_getDateEnd2 -> Equal expectation fails at character 0 with [0000-04-15] and [2007-04-15] at [/var/www/piwik/tests/core/Period.test.php line 167]<br /> |
|---|
| 34 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_day_getDateEnd3 -> Equal expectation fails at character 0 with [0000-12-31] and [2007-12-31] at [/var/www/piwik/tests/core/Period.test.php line 180]<br /> |
|---|
| 35 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_month_Dec -> Equal expectation fails with member [0] at character 0 with [0000-12-01] and [2006-12-01] at [/var/www/piwik/tests/core/Period.test.php line 225]<br /> |
|---|
| 36 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_month_Dec -> Equal expectation fails as [Boolean: false] does not match [Boolean: true] at [/var/www/piwik/tests/core/Period.test.php line 227]<br /> |
|---|
| 37 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_month_FebLeap -> Equal expectation fails with member [0] at character 0 with [0000-02-01] and [2024-02-01] at [/var/www/piwik/tests/core/Period.test.php line 263]<br /> |
|---|
| 38 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_month_FebLeap -> Equal expectation fails as [Boolean: true] does not match [Boolean: false] at [/var/www/piwik/tests/core/Period.test.php line 265]<br /> |
|---|
| 39 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_month_FebNonLeap -> Equal expectation fails as key list [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28] does not match key list [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27] at [/var/www/piwik/tests/core/Period.test.php line 300]<br /> |
|---|
| 40 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_month_FebNonLeap -> Equal expectation fails because [Integer: 29] differs from [Integer: 28] by 1 at [/var/www/piwik/tests/core/Period.test.php line 301]<br /> |
|---|
| 41 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_month_FebNonLeap -> Equal expectation fails as [Boolean: true] does not match [Boolean: false] at [/var/www/piwik/tests/core/Period.test.php line 302]<br /> |
|---|
| 42 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_month_Jan -> Equal expectation fails with member [0] at character 0 with [0000-01-01] and [2007-01-01] at [/var/www/piwik/tests/core/Period.test.php line 340]<br /> |
|---|
| 43 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_month_DSTChangeMarch -> Equal expectation fails with member [0] at character 0 with [0000-03-01] and [2007-03-01] at [/var/www/piwik/tests/core/Period.test.php line 381]<br /> |
|---|
| 44 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_month_DSTChangeOct -> Equal expectation fails with member [0] at character 0 with [0000-10-01] and [2017-10-01] at [/var/www/piwik/tests/core/Period.test.php line 420]<br /> |
|---|
| 45 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_week_Between2years -> Equal expectation fails with member [0] at character 0 with [0000-12-26] and [2005-12-26] at [/var/www/piwik/tests/core/Period.test.php line 447]<br /> |
|---|
| 46 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_week_Between2years -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 47 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_week_Between2month -> Equal expectation fails with member [0] at character 0 with [0000-05-29] and [2006-05-29] at [/var/www/piwik/tests/core/Period.test.php line 463]<br /> |
|---|
| 48 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_week_Between2month -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 49 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_week_febLeapyear -> Equal expectation fails with member [0] at character 0 with [0000-02-27] and [2023-02-27] at [/var/www/piwik/tests/core/Period.test.php line 480]<br /> |
|---|
| 50 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_week_febLeapyear -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 51 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_week_febnonLeapyear -> Equal expectation fails with member [0] at character 0 with [0000-02-26] and [2024-02-26] at [/var/www/piwik/tests/core/Period.test.php line 501]<br /> |
|---|
| 52 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_week_febnonLeapyear -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 53 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_week_middleofmonth -> Equal expectation fails with member [0] at character 0 with [0000-10-07] and [2024-10-07] at [/var/www/piwik/tests/core/Period.test.php line 522]<br /> |
|---|
| 54 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_week_middleofmonth -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 55 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_year_normalcase -> <strong>Unexpected exception of type [Exception] with message [Date format must be: YYYY-MM-DD, or 'today' or 'yesterday' or any keyword supported by the strtotime function (see http://php.net/strtotime for more information)] in [/var/www/piwik/core/Date.php line 39]</strong><br /> |
|---|
| 56 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_year_pastAndWrongdate -> <strong>Unexpected exception of type [Exception] with message [Date format must be: YYYY-MM-DD, or 'today' or 'yesterday' or any keyword supported by the strtotime function (see http://php.net/strtotime for more information)] in [/var/www/piwik/core/Date.php line 39]</strong><br /> |
|---|
| 57 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_today -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 58 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_2days -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 59 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_5days -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 60 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_previous3days -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 61 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_comma1 -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 62 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_comma2 -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 63 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_weekcomma1 -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 64 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_yearcomma1 -> <strong>Unexpected exception of type [Exception] with message [Date format must be: YYYY-MM-DD, or 'today' or 'yesterday' or any keyword supported by the strtotime function (see http://php.net/strtotime for more information)] in [/var/www/piwik/core/Date.php line 39]</strong><br /> |
|---|
| 65 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_monthcomma1 -> Equal expectation fails as [Boolean: false] does not match [Boolean: true] at [/var/www/piwik/tests/core/Period.test.php line 854]<br /> |
|---|
| 66 | <span class="fail">Fail</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_monthcomma1 -> Equal expectation fails with member [0] with member [0] at character 0 with [0000-12-01] and [2006-12-01] at [/var/www/piwik/tests/core/Period.test.php line 855]<br /> |
|---|
| 67 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_week -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 68 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_week_last1 -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 69 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_month -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 70 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_month_last1 -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 71 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_previousmonth -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 72 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_year -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 73 | <span class="fail">Exception</span>: ../tests/core/Period.test.php -> Test_Piwik_Period -> test_range_year_last1 -> <strong>Unexpected exception of type [Exception] with message [Piwik_Date is expecting a unix timestamp] in [/var/www/piwik/core/Date.php line 65]</strong><br /> |
|---|
| 74 | The test class extends Test_Database: the test Piwik database is created once in the constructor, and all tables are truncated at the end of EACH unit test method.<br>The test class extends Test_Database: the test Piwik database is created once in the constructor, and all tables are truncated at the end of EACH unit test method.<br><span class="fail">Fail</span>: ../tests/core/TablePartitioning.test.php -> Test_Piwik_TablePartitioning -> test_noTable -> piwiktests_archive_numeric_2000_09 !==array ( |
|---|
| 75 | 0 => 'piwiktests_user', |
|---|
| 76 | 1 => 'piwiktests_access', |
|---|
| 77 | 2 => 'piwiktests_site', |
|---|
| 78 | 3 => 'piwiktests_site_url', |
|---|
| 79 | 4 => 'piwiktests_goal', |
|---|
| 80 | 5 => 'piwiktests_logger_message', |
|---|
| 81 | 6 => 'piwiktests_logger_api_call', |
|---|
| 82 | 7 => 'piwiktests_logger_error', |
|---|
| 83 | 8 => 'piwiktests_logger_exception', |
|---|
| 84 | 9 => 'piwiktests_log_action', |
|---|
| 85 | 10 => 'piwiktests_log_visit', |
|---|
| 86 | 11 => 'piwiktests_log_conversion', |
|---|
| 87 | 12 => 'piwiktests_log_link_visit_action', |
|---|
| 88 | 13 => 'piwiktests_log_profiling', |
|---|
| 89 | 14 => 'piwiktests_option', |
|---|
| 90 | 15 => 'piwiktests_archive_numeric_0000_09', |
|---|
| 91 | ) at [/var/www/piwik/tests/core/TablePartitioning.test.php line 49]<br /> |
|---|
| 92 | <span class="fail">Fail</span>: ../tests/core/TablePartitioning.test.php -> Test_Piwik_TablePartitioning -> test_noTable -> Equal expectation fails at character 27 with [piwiktests_archive_numeric_2000_09] and [piwiktests_archive_numeric_0000_09] at [/var/www/piwik/tests/core/TablePartitioning.test.php line 51]<br /> |
|---|
| 93 | <span class="fail">Fail</span>: ../tests/core/TablePartitioning.test.php -> Test_Piwik_TablePartitioning -> test_monthlyPartition -> at [/var/www/piwik/tests/core/TablePartitioning.test.php line 69]<br /> |
|---|
| 94 | <span class="fail">Fail</span>: ../tests/core/TablePartitioning.test.php -> Test_Piwik_TablePartitioning -> test_monthlyPartition -> Equal expectation fails at character 27 with [piwiktests_archive_numeric_2000_09] and [piwiktests_archive_numeric_0000_09] at [/var/www/piwik/tests/core/TablePartitioning.test.php line 71]<br /> |
|---|
| 95 | <span class="fail">Fail</span>: ../tests/core/TablePartitioning.test.php -> Test_Piwik_TablePartitioning -> test_dailyPartition -> at [/var/www/piwik/tests/core/TablePartitioning.test.php line 89]<br /> |
|---|
| 96 | <span class="fail">Fail</span>: ../tests/core/TablePartitioning.test.php -> Test_Piwik_TablePartitioning -> test_dailyPartition -> Equal expectation fails at character 27 with [piwiktests_archive_numeric_2000_09_10] and [piwiktests_archive_numeric_0000_09_10] at [/var/www/piwik/tests/core/TablePartitioning.test.php line 91]<br /> |
|---|
| 97 | The test class extends Test_Database: the test Piwik database is created once in the constructor, and all tables are truncated at the end of EACH unit test method.<br><br> |
|---|
| 98 | Piwik_Url::getCurrentQueryStringWithParametersModified() <br> |
|---|
| 99 | Piwik_Url::getCurrentUrl() http://box.briefcard.net/logs2/tests/all_tests.php<br> |
|---|
| 100 | Piwik_Url::getCurrentUrlWithoutQueryString() http://box.briefcard.net/logs2/tests/all_tests.php<br> |
|---|
| 101 | Piwik_Url::getCurrentUrlWithoutFileName() http://box.briefcard.net/logs2/tests/<br> |
|---|
| 102 | Piwik_Url::getCurrentScriptName() /logs2/tests/all_tests.php<br> |
|---|
| 103 | Piwik_Url::getCurrentScriptPath() /logs2/tests/<br> |
|---|
| 104 | Piwik_Url::getCurrentHost() http://box.briefcard.net<br> |
|---|
| 105 | Piwik_Url::getCurrentQueryString() <br> |
|---|
| 106 | Piwik_Url::getArrayFromCurrentQueryString() array(0) { |
|---|
| 107 | } |
|---|
| 108 | The test class extends Test_Database: the test Piwik database is created once in the constructor, and all tables are truncated at the end of EACH unit test method.<br><div style="padding: 8px; margin-top: 1em; background-color: red; color: white;">26/27 test cases complete: |
|---|
| 109 | <strong>697</strong> passes, <strong>30</strong> fails and <strong>30</strong> exceptions.</div> |
|---|
| 110 | </body> |
|---|
| 111 | </html> |
|---|
| 112 | Time elapsed: 13.266s<br>Memory delta: 1.3 M |
|---|