Skip to content

Instantly share code, notes, and snippets.

@kaechele
Created March 21, 2013 21:02
Show Gist options
  • Save kaechele/5216704 to your computer and use it in GitHub Desktop.
Save kaechele/5216704 to your computer and use it in GitHub Desktop.
There were 2 failures:
1) Test_Piwik_Integration_ManyVisitorsOneWebsiteTest::testApi with data set #0 (array('UserCountry'), array(1, '2010-01-03 11:22:33', array('month')))
Differences with expected in: /home/felix/Development/piwik/tests/PHPUnit/Integration/processed/test_ManyVisitorsOneWebsiteTest__UserCountry.getCountry_month.xml
Failed asserting that two DOM documents are equal.
--- Expected
+++ Actual
@@ @@
<row>
- <label>France</label>
+ <label>Russian Federation</label>
@@ @@
<sum_daily_nb_uniq_visitors>2</sum_daily_nb_uniq_visitors>
- <code>fr</code>
- <logo>plugins/UserCountry/flags/fr.png</logo>
+ <code>ru</code>
+ <logo>plugins/UserCountry/flags/ru.png</logo>
<logoWidth>16</logoWidth>
<logoHeight>11</logoHeight>
</row>
<row>
- <label>Russian Federation</label>
- <nb_visits>4</nb_visits>
- <nb_actions>4</nb_actions>
+ <label>France</label>
+ <nb_visits>2</nb_visits>
+ <nb_actions>2</nb_actions>
<max_actions>1</max_actions>
<sum_visit_length>0</sum_visit_length>
- <bounce_count>4</bounce_count>
+ <bounce_count>2</bounce_count>
<goals>
<row idgoal="1">
- <nb_conversions>4</nb_conversions>
- <nb_visits_converted>4</nb_visits_converted>
- <revenue>20</revenue>
+ <nb_conversions>2</nb_conversions>
+ <nb_visits_converted>2</nb_visits_converted>
+ <revenue>10</revenue>
</row>
</goals>
- <nb_conversions>4</nb_conversions>
- <revenue>20</revenue>
- <sum_daily_nb_uniq_visitors>2</sum_daily_nb_uniq_visitors>
- <code>ru</code>
- <logo>plugins/UserCountry/flags/ru.png</logo>
+ <nb_conversions>2</nb_conversions>
+ <revenue>10</revenue>
+ <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
+ <code>fr</code>
+ <logo>plugins/UserCountry/flags/fr.png</logo>
@@ @@
<logo>plugins/UserCountry/flags/id.png</logo>
+ <logoWidth>16</logoWidth>
+ <logoHeight>11</logoHeight>
+ </row>
+ <row>
+ <label>Ireland</label>
+ <nb_visits>2</nb_visits>
+ <nb_actions>2</nb_actions>
+ <max_actions>1</max_actions>
+ <sum_visit_length>0</sum_visit_length>
+ <bounce_count>2</bounce_count>
+ <goals>
+ <row idgoal="1">
+ <nb_conversions>2</nb_conversions>
+ <nb_visits_converted>2</nb_visits_converted>
+ <revenue>10</revenue>
+ </row>
+ </goals>
+ <nb_conversions>2</nb_conversions>
+ <revenue>10</revenue>
+ <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
+ <code>ie</code>
+ <logo>plugins/UserCountry/flags/ie.png</logo>
<logoWidth>16</logoWidth>
<logoHeight>11</logoHeight>
</row>
<row>
<label>Italy</label>
<nb_visits>2</nb_visits>
<nb_actions>2</nb_actions>
<max_actions>1</max_actions>
<sum_visit_length>0</sum_visit_length>
<bounce_count>2</bounce_count>
<goals>
<row idgoal="1">
<nb_conversions>2</nb_conversions>
<nb_visits_converted>2</nb_visits_converted>
<revenue>10</revenue>
</row>
</goals>
<nb_conversions>2</nb_conversions>
<revenue>10</revenue>
<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
<code>it</code>
<logo>plugins/UserCountry/flags/it.png</logo>
<logoWidth>16</logoWidth>
<logoHeight>11</logoHeight>
</row>
<row>
<label>Macedonia, the Former Yugoslav Republic of</label>
<nb_visits>2</nb_visits>
<nb_actions>2</nb_actions>
<max_actions>1</max_actions>
<sum_visit_length>0</sum_visit_length>
<bounce_count>2</bounce_count>
<goals>
<row idgoal="1">
<nb_conversions>2</nb_conversions>
<nb_visits_converted>2</nb_visits_converted>
<revenue>10</revenue>
</row>
</goals>
<nb_conversions>2</nb_conversions>
<revenue>10</revenue>
<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
<code>mk</code>
<logo>plugins/UserCountry/flags/mk.png</logo>
<logoWidth>16</logoWidth>
<logoHeight>11</logoHeight>
</row>
<row>
<label>Tibet</label>
<nb_visits>2</nb_visits>
<nb_actions>2</nb_actions>
<max_actions>1</max_actions>
<sum_visit_length>0</sum_visit_length>
<bounce_count>2</bounce_count>
<goals>
<row idgoal="1">
<nb_conversions>2</nb_conversions>
<nb_visits_converted>2</nb_visits_converted>
<revenue>10</revenue>
</row>
</goals>
<nb_conversions>2</nb_conversions>
<revenue>10</revenue>
<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
<code>ti</code>
<logo>plugins/UserCountry/flags/ti.png</logo>
<logoWidth>16</logoWidth>
<logoHeight>11</logoHeight>
</row>
<row>
<label>Unknown</label>
<nb_visits>2</nb_visits>
<nb_actions>2</nb_actions>
<max_actions>1</max_actions>
<sum_visit_length>0</sum_visit_length>
<bounce_count>2</bounce_count>
<goals>
<row idgoal="1">
<nb_conversions>2</nb_conversions>
<nb_visits_converted>2</nb_visits_converted>
<revenue>10</revenue>
</row>
</goals>
<nb_conversions>2</nb_conversions>
<revenue>10</revenue>
<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
<code>xx</code>
<logo>plugins/UserCountry/flags/xx.png</logo>
<logoWidth>16</logoWidth>
<logoHeight>11</logoHeight>
</row>
<row>
<label>United States</label>
<nb_visits>1</nb_visits>
<nb_actions>1</nb_actions>
<max_actions>1</max_actions>
<sum_visit_length>0</sum_visit_length>
<bounce_count>1</bounce_count>
<goals>
<row idgoal="1">
<nb_conversions>1</nb_conversions>
<nb_visits_converted>1</nb_visits_converted>
<revenue>5</revenue>
</row>
</goals>
<nb_conversions>1</nb_conversions>
<revenue>5</revenue>
<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
<code>us</code>
<logo>plugins/UserCountry/flags/us.png</logo>
<logoWidth>16</logoWidth>
<logoHeight>11</logoHeight>
</row>
</result>
/home/felix/Development/piwik/tests/PHPUnit/IntegrationTestCase.php:762
/home/felix/Development/piwik/tests/PHPUnit/IntegrationTestCase.php:973
/home/felix/Development/piwik/tests/PHPUnit/Integration/ManyVisitorsOneWebsiteTest.php:29
2) Test_Piwik_Integration_ManyVisitorsOneWebsiteTest::testApi with data set #4 ('UserCountry.getCountry', array(1, '2010-01-03 11:22:33', array('month'), '_segment_continent', 'continent==eur'))
Differences with expected in: /home/felix/Development/piwik/tests/PHPUnit/Integration/processed/test_ManyVisitorsOneWebsiteTest_segment_continent__UserCountry.getCountry_month.xml
Failed asserting that two DOM documents are equal.
--- Expected
+++ Actual
@@ @@
<row>
- <label>France</label>
+ <label>Russian Federation</label>
@@ @@
<sum_daily_nb_uniq_visitors>2</sum_daily_nb_uniq_visitors>
+ <code>ru</code>
+ <logo>plugins/UserCountry/flags/ru.png</logo>
+ <logoWidth>16</logoWidth>
+ <logoHeight>11</logoHeight>
+ </row>
+ <row>
+ <label>France</label>
+ <nb_visits>2</nb_visits>
+ <nb_actions>2</nb_actions>
+ <max_actions>1</max_actions>
+ <sum_visit_length>0</sum_visit_length>
+ <bounce_count>2</bounce_count>
+ <goals>
+ <row idgoal="1">
+ <nb_conversions>2</nb_conversions>
+ <nb_visits_converted>2</nb_visits_converted>
+ <revenue>10</revenue>
+ </row>
+ </goals>
+ <nb_conversions>2</nb_conversions>
+ <revenue>10</revenue>
+ <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
@@ @@
<row>
- <label>Russian Federation</label>
- <nb_visits>4</nb_visits>
- <nb_actions>4</nb_actions>
+ <label>Ireland</label>
+ <nb_visits>2</nb_visits>
+ <nb_actions>2</nb_actions>
<max_actions>1</max_actions>
<sum_visit_length>0</sum_visit_length>
- <bounce_count>4</bounce_count>
+ <bounce_count>2</bounce_count>
<goals>
<row idgoal="1">
- <nb_conversions>4</nb_conversions>
- <nb_visits_converted>4</nb_visits_converted>
- <revenue>20</revenue>
+ <nb_conversions>2</nb_conversions>
+ <nb_visits_converted>2</nb_visits_converted>
+ <revenue>10</revenue>
</row>
</goals>
- <nb_conversions>4</nb_conversions>
- <revenue>20</revenue>
- <sum_daily_nb_uniq_visitors>2</sum_daily_nb_uniq_visitors>
- <code>ru</code>
- <logo>plugins/UserCountry/flags/ru.png</logo>
+ <nb_conversions>2</nb_conversions>
+ <revenue>10</revenue>
+ <sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
+ <code>ie</code>
+ <logo>plugins/UserCountry/flags/ie.png</logo>
<logoWidth>16</logoWidth>
<logoHeight>11</logoHeight>
</row>
<row>
<label>Italy</label>
<nb_visits>2</nb_visits>
<nb_actions>2</nb_actions>
<max_actions>1</max_actions>
<sum_visit_length>0</sum_visit_length>
<bounce_count>2</bounce_count>
<goals>
<row idgoal="1">
<nb_conversions>2</nb_conversions>
<nb_visits_converted>2</nb_visits_converted>
<revenue>10</revenue>
</row>
</goals>
<nb_conversions>2</nb_conversions>
<revenue>10</revenue>
<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
<code>it</code>
<logo>plugins/UserCountry/flags/it.png</logo>
<logoWidth>16</logoWidth>
<logoHeight>11</logoHeight>
</row>
<row>
<label>Macedonia, the Former Yugoslav Republic of</label>
<nb_visits>2</nb_visits>
<nb_actions>2</nb_actions>
<max_actions>1</max_actions>
<sum_visit_length>0</sum_visit_length>
<bounce_count>2</bounce_count>
<goals>
<row idgoal="1">
<nb_conversions>2</nb_conversions>
<nb_visits_converted>2</nb_visits_converted>
<revenue>10</revenue>
</row>
</goals>
<nb_conversions>2</nb_conversions>
<revenue>10</revenue>
<sum_daily_nb_uniq_visitors>1</sum_daily_nb_uniq_visitors>
<code>mk</code>
<logo>plugins/UserCountry/flags/mk.png</logo>
<logoWidth>16</logoWidth>
<logoHeight>11</logoHeight>
</row>
</result>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment