{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf340
{\fonttbl\f0\fmodern\fcharset0 Courier;}
{\colortbl;\red255\green255\blue255;}
\paperw11900\paperh16840\margl1440\margr1440\vieww16200\viewh13200\viewkind0
\deftab720
\pard\pardeftab720

\f0\fs22 \cf0 There were 9 failures:\
\
1) statslib_daily_testcase::test_statslib_cron_daily with data set #0 (\
+----------------------+----------------------+----------------------+----------------------+\
| log                                                                                       |\
+----------------------+----------------------+----------------------+----------------------+\
|         time         |        userid        |        course        |        action        |\
+----------------------+----------------------+----------------------+----------------------+\
\
, \
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_daily                                                                                                                             |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |       timeend        |        roleid        |       stattype       |        stat1         |        stat2         |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1352502000      |          5           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_user_daily                                                                                                                                               |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |        userid        |        roleid        |       timeend        |      statsreads      |     statswrites      |       stattype       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
)\
Expected log array (\
  'courseid' => '2',\
  'timeend' => 1352502000,\
  'roleid' => '5',\
  'stattype' => 'enrolments',\
  'stat1' => '1',\
  'stat2' => '0',\
) was not found in stats_daily array (\
  1 => \
  stdClass::__set_state(array(\
     'id' => '1',\
     'courseid' => '2',\
     'timeend' => '1352563200',\
     'roleid' => '5',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
)\
Failed asserting that 0 is greater than 0.\
\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:262\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:549\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/phpunit/classes/advanced_testcase.php:76\
\
To re-run:\
 phpunit statslib_daily_testcase lib/tests/statslib_test.php\
\
2) statslib_daily_testcase::test_statslib_cron_daily with data set #1 (\
+----------------------+----------------------+----------------------+----------------------+\
| log                                                                                       |\
+----------------------+----------------------+----------------------+----------------------+\
|         time         |        userid        |        course        |        action        |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592810      |          1           |          1           |         view         |\
+----------------------+----------------------+----------------------+----------------------+\
\
, \
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_daily                                                                                                                             |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |       timeend        |        roleid        |       stattype       |        stat1         |        stat2         |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |        logins        |          0           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          5           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          8           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |       activity       |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          6           |       activity       |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_user_daily                                                                                                                                               |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |        userid        |        roleid        |       timeend        |      statsreads      |     statswrites      |       stattype       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          1           |          0           |      1272664800      |          1           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          0           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
)\
Expected log array (\
  'courseid' => '1',\
  'timeend' => 1272664800,\
  'roleid' => '0',\
  'stattype' => 'logins',\
  'stat1' => '0',\
  'stat2' => '0',\
) was not found in stats_daily array (\
  1 => \
  stdClass::__set_state(array(\
     'id' => '1',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'logins',\
     'stat1' => '0',\
     'stat2' => '0',\
  )),\
  2 => \
  stdClass::__set_state(array(\
     'id' => '2',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '5',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  3 => \
  stdClass::__set_state(array(\
     'id' => '3',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  4 => \
  stdClass::__set_state(array(\
     'id' => '4',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  5 => \
  stdClass::__set_state(array(\
     'id' => '5',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '8',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  6 => \
  stdClass::__set_state(array(\
     'id' => '6',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  7 => \
  stdClass::__set_state(array(\
     'id' => '7',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '6',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
)\
Failed asserting that 0 is greater than 0.\
\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:262\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:549\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/phpunit/classes/advanced_testcase.php:76\
\
To re-run:\
 phpunit statslib_daily_testcase lib/tests/statslib_test.php\
\
3) statslib_daily_testcase::test_statslib_cron_daily with data set #2 (\
+----------------------+----------------------+----------------------+----------------------+\
| log                                                                                       |\
+----------------------+----------------------+----------------------+----------------------+\
|         time         |        userid        |        course        |        action        |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592810      |          3           |          1           |        login         |\
+----------------------+----------------------+----------------------+----------------------+\
\
, \
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_daily                                                                                                                             |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |       timeend        |        roleid        |       stattype       |        stat1         |        stat2         |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |        logins        |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          5           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          8           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |       activity       |          0           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_user_daily                                                                                                                                               |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |        userid        |        roleid        |       timeend        |      statsreads      |     statswrites      |       stattype       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          3           |          0           |      1272664800      |          1           |          0           |        logins        |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          3           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          0           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
)\
Expected log array (\
  'courseid' => '1',\
  'timeend' => 1272664800,\
  'roleid' => '0',\
  'stattype' => 'logins',\
  'stat1' => '1',\
  'stat2' => '1',\
) was not found in stats_daily array (\
  1 => \
  stdClass::__set_state(array(\
     'id' => '1',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'logins',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  2 => \
  stdClass::__set_state(array(\
     'id' => '2',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '5',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  3 => \
  stdClass::__set_state(array(\
     'id' => '3',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  4 => \
  stdClass::__set_state(array(\
     'id' => '4',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  5 => \
  stdClass::__set_state(array(\
     'id' => '5',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '8',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  6 => \
  stdClass::__set_state(array(\
     'id' => '6',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '0',\
     'stat2' => '0',\
  )),\
)\
Failed asserting that 0 is greater than 0.\
\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:262\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:549\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/phpunit/classes/advanced_testcase.php:76\
\
To re-run:\
 phpunit statslib_daily_testcase lib/tests/statslib_test.php\
\
4) statslib_daily_testcase::test_statslib_cron_daily with data set #3 (\
+----------------------+----------------------+----------------------+----------------------+\
| log                                                                                       |\
+----------------------+----------------------+----------------------+----------------------+\
|         time         |        userid        |        course        |        action        |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592810      |          1           |          1           |        login         |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592820      |          1           |          2           |         view         |\
+----------------------+----------------------+----------------------+----------------------+\
\
, \
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_daily                                                                                                                             |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |       timeend        |        roleid        |       stattype       |        stat1         |        stat2         |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |        logins        |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          5           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          8           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |       activity       |          0           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |       activity       |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          6           |       activity       |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_user_daily                                                                                                                                               |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |        userid        |        roleid        |       timeend        |      statsreads      |     statswrites      |       stattype       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          1           |          0           |      1272664800      |          1           |          0           |        logins        |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |          1           |          0           |      1272664800      |          1           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          1           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          0           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
)\
Expected log array (\
  'courseid' => '1',\
  'timeend' => 1272664800,\
  'roleid' => '0',\
  'stattype' => 'logins',\
  'stat1' => '1',\
  'stat2' => '1',\
) was not found in stats_daily array (\
  1 => \
  stdClass::__set_state(array(\
     'id' => '1',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'logins',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  2 => \
  stdClass::__set_state(array(\
     'id' => '2',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '5',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  3 => \
  stdClass::__set_state(array(\
     'id' => '3',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  4 => \
  stdClass::__set_state(array(\
     'id' => '4',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  5 => \
  stdClass::__set_state(array(\
     'id' => '5',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '8',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  6 => \
  stdClass::__set_state(array(\
     'id' => '6',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '0',\
     'stat2' => '0',\
  )),\
  7 => \
  stdClass::__set_state(array(\
     'id' => '7',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  8 => \
  stdClass::__set_state(array(\
     'id' => '8',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '6',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
)\
Failed asserting that 0 is greater than 0.\
\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:262\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:549\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/phpunit/classes/advanced_testcase.php:76\
\
To re-run:\
 phpunit statslib_daily_testcase lib/tests/statslib_test.php\
\
5) statslib_daily_testcase::test_statslib_cron_daily with data set #4 (\
+----------------------+----------------------+----------------------+----------------------+\
| log                                                                                       |\
+----------------------+----------------------+----------------------+----------------------+\
|         time         |        userid        |        course        |        action        |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592810      |          1           |          1           |        login         |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592820      |          1           |          2           |         view         |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592830      |          1           |          2           |       add post       |\
+----------------------+----------------------+----------------------+----------------------+\
\
, \
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_daily                                                                                                                             |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |       timeend        |        roleid        |       stattype       |        stat1         |        stat2         |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |        logins        |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          5           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          8           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |       activity       |          0           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |       activity       |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          6           |       activity       |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_user_daily                                                                                                                                               |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |        userid        |        roleid        |       timeend        |      statsreads      |     statswrites      |       stattype       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          1           |          0           |      1272664800      |          1           |          0           |        logins        |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |          1           |          0           |      1272664800      |          1           |          1           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          1           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          0           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
)\
Expected log array (\
  'courseid' => '1',\
  'timeend' => 1272664800,\
  'roleid' => '0',\
  'stattype' => 'logins',\
  'stat1' => '1',\
  'stat2' => '1',\
) was not found in stats_daily array (\
  1 => \
  stdClass::__set_state(array(\
     'id' => '1',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'logins',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  2 => \
  stdClass::__set_state(array(\
     'id' => '2',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '5',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  3 => \
  stdClass::__set_state(array(\
     'id' => '3',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  4 => \
  stdClass::__set_state(array(\
     'id' => '4',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  5 => \
  stdClass::__set_state(array(\
     'id' => '5',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '8',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  6 => \
  stdClass::__set_state(array(\
     'id' => '6',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '0',\
     'stat2' => '0',\
  )),\
  7 => \
  stdClass::__set_state(array(\
     'id' => '7',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  8 => \
  stdClass::__set_state(array(\
     'id' => '8',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '6',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
)\
Failed asserting that 0 is greater than 0.\
\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:262\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:549\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/phpunit/classes/advanced_testcase.php:76\
\
To re-run:\
 phpunit statslib_daily_testcase lib/tests/statslib_test.php\
\
6) statslib_daily_testcase::test_statslib_cron_daily with data set #5 (\
+----------------------+----------------------+----------------------+----------------------+\
| log                                                                                       |\
+----------------------+----------------------+----------------------+----------------------+\
|         time         |        userid        |        course        |        action        |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592810      |          3           |          1           |        login         |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592820      |          3           |          2           |         view         |\
+----------------------+----------------------+----------------------+----------------------+\
\
, \
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_daily                                                                                                                             |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |       timeend        |        roleid        |       stattype       |        stat1         |        stat2         |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |        logins        |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          5           |      enrolments      |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |      enrolments      |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          8           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |       activity       |          0           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |       activity       |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          5           |       activity       |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_user_daily                                                                                                                                               |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |        userid        |        roleid        |       timeend        |      statsreads      |     statswrites      |       stattype       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          3           |          0           |      1272664800      |          1           |          0           |        logins        |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |          3           |          0           |      1272664800      |          1           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          3           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          0           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
)\
Expected log array (\
  'courseid' => '1',\
  'timeend' => 1272664800,\
  'roleid' => '0',\
  'stattype' => 'logins',\
  'stat1' => '1',\
  'stat2' => '1',\
) was not found in stats_daily array (\
  1 => \
  stdClass::__set_state(array(\
     'id' => '1',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'logins',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  2 => \
  stdClass::__set_state(array(\
     'id' => '2',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '5',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  3 => \
  stdClass::__set_state(array(\
     'id' => '3',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  4 => \
  stdClass::__set_state(array(\
     'id' => '4',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  5 => \
  stdClass::__set_state(array(\
     'id' => '5',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '8',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  6 => \
  stdClass::__set_state(array(\
     'id' => '6',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '0',\
     'stat2' => '0',\
  )),\
  7 => \
  stdClass::__set_state(array(\
     'id' => '7',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  8 => \
  stdClass::__set_state(array(\
     'id' => '8',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '5',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
)\
Failed asserting that 0 is greater than 0.\
\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:262\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:549\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/phpunit/classes/advanced_testcase.php:76\
\
To re-run:\
 phpunit statslib_daily_testcase lib/tests/statslib_test.php\
\
7) statslib_daily_testcase::test_statslib_cron_daily with data set #6 (\
+----------------------+----------------------+----------------------+----------------------+\
| log                                                                                       |\
+----------------------+----------------------+----------------------+----------------------+\
|         time         |        userid        |        course        |        action        |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592810      |          3           |          1           |        login         |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592820      |          3           |          2           |         view         |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592830      |          3           |          2           |       add post       |\
+----------------------+----------------------+----------------------+----------------------+\
\
, \
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_daily                                                                                                                             |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |       timeend        |        roleid        |       stattype       |        stat1         |        stat2         |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |        logins        |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          5           |      enrolments      |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |      enrolments      |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          8           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |       activity       |          0           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |       activity       |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          5           |       activity       |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_user_daily                                                                                                                                               |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |        userid        |        roleid        |       timeend        |      statsreads      |     statswrites      |       stattype       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          3           |          0           |      1272664800      |          1           |          0           |        logins        |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |          3           |          0           |      1272664800      |          1           |          1           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          3           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          0           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
)\
Expected log array (\
  'courseid' => '1',\
  'timeend' => 1272664800,\
  'roleid' => '0',\
  'stattype' => 'logins',\
  'stat1' => '1',\
  'stat2' => '1',\
) was not found in stats_daily array (\
  1 => \
  stdClass::__set_state(array(\
     'id' => '1',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'logins',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  2 => \
  stdClass::__set_state(array(\
     'id' => '2',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '5',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  3 => \
  stdClass::__set_state(array(\
     'id' => '3',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  4 => \
  stdClass::__set_state(array(\
     'id' => '4',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  5 => \
  stdClass::__set_state(array(\
     'id' => '5',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '8',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  6 => \
  stdClass::__set_state(array(\
     'id' => '6',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '0',\
     'stat2' => '0',\
  )),\
  7 => \
  stdClass::__set_state(array(\
     'id' => '7',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  8 => \
  stdClass::__set_state(array(\
     'id' => '8',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '5',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
)\
Failed asserting that 0 is greater than 0.\
\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:262\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:549\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/phpunit/classes/advanced_testcase.php:76\
\
To re-run:\
 phpunit statslib_daily_testcase lib/tests/statslib_test.php\
\
8) statslib_daily_testcase::test_statslib_cron_daily with data set #7 (\
+----------------------+----------------------+----------------------+----------------------+\
| log                                                                                       |\
+----------------------+----------------------+----------------------+----------------------+\
|         time         |        userid        |        course        |        action        |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592810      |          4           |          1           |        login         |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592820      |          4           |          1           |         view         |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592830      |          4           |          2           |         view         |\
+----------------------+----------------------+----------------------+----------------------+\
\
, \
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_daily                                                                                                                             |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |       timeend        |        roleid        |       stattype       |        stat1         |        stat2         |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |        logins        |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          5           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          8           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |       activity       |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |       activity       |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          6           |       activity       |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          8           |       activity       |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_user_daily                                                                                                                                               |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |        userid        |        roleid        |       timeend        |      statsreads      |     statswrites      |       stattype       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          4           |          0           |      1272664800      |          1           |          0           |        logins        |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |          4           |          0           |      1272664800      |          1           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          4           |          0           |      1272664800      |          1           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          0           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
)\
Expected log array (\
  'courseid' => '1',\
  'timeend' => 1272664800,\
  'roleid' => '0',\
  'stattype' => 'logins',\
  'stat1' => '1',\
  'stat2' => '1',\
) was not found in stats_daily array (\
  1 => \
  stdClass::__set_state(array(\
     'id' => '1',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'logins',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  2 => \
  stdClass::__set_state(array(\
     'id' => '2',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '5',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  3 => \
  stdClass::__set_state(array(\
     'id' => '3',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  4 => \
  stdClass::__set_state(array(\
     'id' => '4',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  5 => \
  stdClass::__set_state(array(\
     'id' => '5',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '8',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  6 => \
  stdClass::__set_state(array(\
     'id' => '6',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  7 => \
  stdClass::__set_state(array(\
     'id' => '7',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  8 => \
  stdClass::__set_state(array(\
     'id' => '8',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '6',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  9 => \
  stdClass::__set_state(array(\
     'id' => '9',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '8',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
)\
Failed asserting that 0 is greater than 0.\
\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:262\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:549\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/phpunit/classes/advanced_testcase.php:76\
\
To re-run:\
 phpunit statslib_daily_testcase lib/tests/statslib_test.php\
\
9) statslib_daily_testcase::test_statslib_cron_daily with data set #8 (\
+----------------------+----------------------+----------------------+----------------------+\
| log                                                                                       |\
+----------------------+----------------------+----------------------+----------------------+\
|         time         |        userid        |        course        |        action        |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592810      |          3           |          1           |        login         |\
+----------------------+----------------------+----------------------+----------------------+\
|      1272592820      |          3           |          1           |         view         |\
+----------------------+----------------------+----------------------+----------------------+\
\
, \
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_daily                                                                                                                             |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |       timeend        |        roleid        |       stattype       |        stat1         |        stat2         |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |        logins        |          1           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          5           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          2           |      1272664800      |          0           |      enrolments      |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          8           |      enrolments      |          4           |          1           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          0           |       activity       |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |      1272664800      |          8           |       activity       |          1           |          0           |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
| stats_user_daily                                                                                                                                               |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|       courseid       |        userid        |        roleid        |       timeend        |      statsreads      |     statswrites      |       stattype       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          3           |          0           |      1272664800      |          1           |          0           |        logins        |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          3           |          0           |      1272664800      |          1           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
|          1           |          0           |          0           |      1272664800      |          0           |          0           |       activity       |\
+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+----------------------+\
\
)\
Expected log array (\
  'courseid' => '1',\
  'timeend' => 1272664800,\
  'roleid' => '0',\
  'stattype' => 'logins',\
  'stat1' => '1',\
  'stat2' => '1',\
) was not found in stats_daily array (\
  1 => \
  stdClass::__set_state(array(\
     'id' => '1',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'logins',\
     'stat1' => '1',\
     'stat2' => '1',\
  )),\
  2 => \
  stdClass::__set_state(array(\
     'id' => '2',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '5',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  3 => \
  stdClass::__set_state(array(\
     'id' => '3',\
     'courseid' => '2',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  4 => \
  stdClass::__set_state(array(\
     'id' => '4',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  5 => \
  stdClass::__set_state(array(\
     'id' => '5',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '8',\
     'stattype' => 'enrolments',\
     'stat1' => '4',\
     'stat2' => '1',\
  )),\
  6 => \
  stdClass::__set_state(array(\
     'id' => '6',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '0',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
  7 => \
  stdClass::__set_state(array(\
     'id' => '7',\
     'courseid' => '1',\
     'timeend' => '1272643200',\
     'roleid' => '8',\
     'stattype' => 'activity',\
     'stat1' => '1',\
     'stat2' => '0',\
  )),\
)\
Failed asserting that 0 is greater than 0.\
\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:262\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/tests/statslib_test.php:549\
/Users/Shared/Jenkins/Home/git_repositories/master/lib/phpunit/classes/advanced_testcase.php:76\
\
To re-run:\
 phpunit statslib_daily_testcase lib/tests/statslib_test.php\
\
FAILURES!\
Tests: 1495, Assertions: 27785, Failures: 9.}