PHPUnit 3.6.11 by Sebastian Bergmann. Configuration read from /Users/aparup/Sites/i/phpunit.xml ...FF.....FFFFFFFFF Time: 14 seconds, Memory: 64.00Mb There were 11 failures: 1) statslib_daily_testcase::test_statslib_get_base_daily Failed asserting that 1272643200 matches expected 1272686400. /Users/aparup/Sites/i/lib/tests/statslib_test.php:1212 /Users/aparup/Sites/i/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_get_next_day_start Failed asserting that 1272729600 matches expected 1272772800. /Users/aparup/Sites/i/lib/tests/statslib_test.php:1221 /Users/aparup/Sites/i/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 #1 (array(array(1, 1272686410, '1', '1', 'view')), array(array(array('1', 1272772800, 0, 'logins', 0, 0), array(2, 1272772800, 5, 'enrolments', 1, 0), array(2, 1272772800, 0, 'enrolments', 1, 0), array('1', 1272772800, 0, 'enrolments', 3, 1), array('1', 1272772800, 8, 'enrolments', 3, 1), array('1', 1272772800, 0, 'activity', 1, 0), array('1', 1272772800, '6', 'activity', 1, 0)), array(array('1', '1', 0, 1272772800, 1, 0, 'activity'), array('1', 0, 0, 1272772800, 0, 0, 'activity')))) Expected log array ( 'courseid' => '1', 'timeend' => 1272772800, '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' => '1272729600', 'roleid' => '0', 'stattype' => 'logins', 'stat1' => '0', 'stat2' => '0', )), 2 => stdClass::__set_state(array( 'id' => '2', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '5', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 3 => stdClass::__set_state(array( 'id' => '3', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 4 => stdClass::__set_state(array( 'id' => '4', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 5 => stdClass::__set_state(array( 'id' => '5', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '8', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 6 => stdClass::__set_state(array( 'id' => '6', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), 7 => stdClass::__set_state(array( 'id' => '7', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '6', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), ) Failed asserting that 0 is greater than 0. /Users/aparup/Sites/i/lib/tests/statslib_test.php:1132 /Users/aparup/Sites/i/lib/tests/statslib_test.php:1418 /Users/aparup/Sites/i/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 #2 (array(array(1, 1272686410, 2, '1', 'login')), array(array(array('1', 1272772800, 0, 'logins', 1, 1), array(2, 1272772800, 5, 'enrolments', 1, 0), array(2, 1272772800, 0, 'enrolments', 1, 0), array('1', 1272772800, 0, 'enrolments', 3, 1), array('1', 1272772800, 8, 'enrolments', 3, 1), array('1', 1272772800, 0, 'activity', 0, 0)), array(array('1', 2, 0, 1272772800, 1, 0, 'logins'), array('1', 2, 0, 1272772800, 0, 0, 'activity'), array('1', 0, 0, 1272772800, 0, 0, 'activity')))) Expected log array ( 'courseid' => '1', 'timeend' => 1272772800, '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' => '1272729600', 'roleid' => '0', 'stattype' => 'logins', 'stat1' => '1', 'stat2' => '1', )), 2 => stdClass::__set_state(array( 'id' => '2', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '5', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 3 => stdClass::__set_state(array( 'id' => '3', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 4 => stdClass::__set_state(array( 'id' => '4', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 5 => stdClass::__set_state(array( 'id' => '5', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '8', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 6 => stdClass::__set_state(array( 'id' => '6', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '0', 'stat2' => '0', )), ) Failed asserting that 0 is greater than 0. /Users/aparup/Sites/i/lib/tests/statslib_test.php:1132 /Users/aparup/Sites/i/lib/tests/statslib_test.php:1418 /Users/aparup/Sites/i/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 #3 (array(array(1, 1272686410, '1', '1', 'login'), array(2, 1272686420, '1', 2, 'view')), array(array(array('1', 1272772800, 0, 'logins', 1, 1), array(2, 1272772800, 5, 'enrolments', 1, 0), array(2, 1272772800, 0, 'enrolments', 1, 0), array('1', 1272772800, 0, 'enrolments', 3, 1), array('1', 1272772800, 8, 'enrolments', 3, 1), array('1', 1272772800, 0, 'activity', 0, 0), array(2, 1272772800, 0, 'activity', 1, 0), array(2, 1272772800, '6', 'activity', 1, 0)), array(array('1', '1', 0, 1272772800, 1, 0, 'logins'), array(2, '1', 0, 1272772800, 1, 0, 'activity'), array('1', '1', 0, 1272772800, 0, 0, 'activity'), array('1', 0, 0, 1272772800, 0, 0, 'activity')))) Expected log array ( 'courseid' => '1', 'timeend' => 1272772800, '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' => '1272729600', 'roleid' => '0', 'stattype' => 'logins', 'stat1' => '1', 'stat2' => '1', )), 2 => stdClass::__set_state(array( 'id' => '2', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '5', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 3 => stdClass::__set_state(array( 'id' => '3', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 4 => stdClass::__set_state(array( 'id' => '4', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 5 => stdClass::__set_state(array( 'id' => '5', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '8', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 6 => stdClass::__set_state(array( 'id' => '6', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '0', 'stat2' => '0', )), 7 => stdClass::__set_state(array( 'id' => '7', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), 8 => stdClass::__set_state(array( 'id' => '8', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '6', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), ) Failed asserting that 0 is greater than 0. /Users/aparup/Sites/i/lib/tests/statslib_test.php:1132 /Users/aparup/Sites/i/lib/tests/statslib_test.php:1418 /Users/aparup/Sites/i/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 #4 (array(array(1, 1272686410, '1', '1', 'login'), array(2, 1272686420, '1', 2, 'view'), array(3, 1272686430, '1', 2, 'add post')), array(array(array('1', 1272772800, 0, 'logins', 1, 1), array(2, 1272772800, 5, 'enrolments', 1, 0), array(2, 1272772800, 0, 'enrolments', 1, 0), array('1', 1272772800, 0, 'enrolments', 3, 1), array('1', 1272772800, 8, 'enrolments', 3, 1), array('1', 1272772800, 0, 'activity', 0, 0), array(2, 1272772800, 0, 'activity', 1, 1), array(2, 1272772800, '6', 'activity', 1, 1)), array(array('1', '1', 0, 1272772800, 1, 0, 'logins'), array(2, '1', 0, 1272772800, 1, 1, 'activity'), array('1', '1', 0, 1272772800, 0, 0, 'activity'), array('1', 0, 0, 1272772800, 0, 0, 'activity')))) Expected log array ( 'courseid' => '1', 'timeend' => 1272772800, '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' => '1272729600', 'roleid' => '0', 'stattype' => 'logins', 'stat1' => '1', 'stat2' => '1', )), 2 => stdClass::__set_state(array( 'id' => '2', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '5', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 3 => stdClass::__set_state(array( 'id' => '3', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 4 => stdClass::__set_state(array( 'id' => '4', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 5 => stdClass::__set_state(array( 'id' => '5', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '8', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 6 => stdClass::__set_state(array( 'id' => '6', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '0', 'stat2' => '0', )), 7 => stdClass::__set_state(array( 'id' => '7', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '1', )), 8 => stdClass::__set_state(array( 'id' => '8', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '6', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '1', )), ) Failed asserting that 0 is greater than 0. /Users/aparup/Sites/i/lib/tests/statslib_test.php:1132 /Users/aparup/Sites/i/lib/tests/statslib_test.php:1418 /Users/aparup/Sites/i/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 #5 (array(array(1, 1272686410, 2, '1', 'login'), array(2, 1272686420, 2, 2, 'view')), array(array(array('1', 1272772800, 0, 'logins', 1, 1), array(2, 1272772800, 5, 'enrolments', 1, 1), array(2, 1272772800, 0, 'enrolments', 1, 1), array('1', 1272772800, 0, 'enrolments', 3, 1), array('1', 1272772800, 8, 'enrolments', 3, 1), array('1', 1272772800, 0, 'activity', 0, 0), array(2, 1272772800, 0, 'activity', 1, 0), array(2, 1272772800, 5, 'activity', 1, 0)), array(array('1', 2, 0, 1272772800, 1, 0, 'logins'), array(2, 2, 0, 1272772800, 1, 0, 'activity'), array('1', 2, 0, 1272772800, 0, 0, 'activity'), array('1', 0, 0, 1272772800, 0, 0, 'activity')))) Expected log array ( 'courseid' => '1', 'timeend' => 1272772800, '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' => '1272729600', 'roleid' => '0', 'stattype' => 'logins', 'stat1' => '1', 'stat2' => '1', )), 2 => stdClass::__set_state(array( 'id' => '2', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '5', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '1', )), 3 => stdClass::__set_state(array( 'id' => '3', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '1', )), 4 => stdClass::__set_state(array( 'id' => '4', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 5 => stdClass::__set_state(array( 'id' => '5', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '8', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 6 => stdClass::__set_state(array( 'id' => '6', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '0', 'stat2' => '0', )), 7 => stdClass::__set_state(array( 'id' => '7', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), 8 => stdClass::__set_state(array( 'id' => '8', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '5', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), ) Failed asserting that 0 is greater than 0. /Users/aparup/Sites/i/lib/tests/statslib_test.php:1132 /Users/aparup/Sites/i/lib/tests/statslib_test.php:1418 /Users/aparup/Sites/i/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 #6 (array(array(1, 1272686410, 2, '1', 'login'), array(2, 1272686420, 2, 2, 'view'), array(3, 1272686430, 2, 2, 'add post')), array(array(array('1', 1272772800, 0, 'logins', 1, 1), array(2, 1272772800, 5, 'enrolments', 1, 1), array(2, 1272772800, 0, 'enrolments', 1, 1), array('1', 1272772800, 0, 'enrolments', 3, 1), array('1', 1272772800, 8, 'enrolments', 3, 1), array('1', 1272772800, 0, 'activity', 0, 0), array(2, 1272772800, 0, 'activity', 1, 1), array(2, 1272772800, 5, 'activity', 1, 1)), array(array('1', 2, 0, 1272772800, 1, 0, 'logins'), array(2, 2, 0, 1272772800, 1, 1, 'activity'), array('1', 2, 0, 1272772800, 0, 0, 'activity'), array('1', 0, 0, 1272772800, 0, 0, 'activity')))) Expected log array ( 'courseid' => '1', 'timeend' => 1272772800, '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' => '1272729600', 'roleid' => '0', 'stattype' => 'logins', 'stat1' => '1', 'stat2' => '1', )), 2 => stdClass::__set_state(array( 'id' => '2', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '5', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '1', )), 3 => stdClass::__set_state(array( 'id' => '3', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '1', )), 4 => stdClass::__set_state(array( 'id' => '4', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 5 => stdClass::__set_state(array( 'id' => '5', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '8', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 6 => stdClass::__set_state(array( 'id' => '6', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '0', 'stat2' => '0', )), 7 => stdClass::__set_state(array( 'id' => '7', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '1', )), 8 => stdClass::__set_state(array( 'id' => '8', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '5', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '1', )), ) Failed asserting that 0 is greater than 0. /Users/aparup/Sites/i/lib/tests/statslib_test.php:1132 /Users/aparup/Sites/i/lib/tests/statslib_test.php:1418 /Users/aparup/Sites/i/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 #7 (array(array(1, 1272686410, 3, '1', 'login'), array(2, 1272686420, 3, '1', 'view'), array(3, 1272686430, 3, 2, 'view')), array(array(array('1', 1272772800, 0, 'logins', 1, 1), array(2, 1272772800, 5, 'enrolments', 1, 0), array(2, 1272772800, 0, 'enrolments', 1, 0), array('1', 1272772800, 0, 'enrolments', 3, 1), array('1', 1272772800, 8, 'enrolments', 3, 1), array('1', 1272772800, 0, 'activity', 1, 0), array(2, 1272772800, 0, 'activity', 1, 0), array(2, 1272772800, '6', 'activity', 1, 0), array('1', 1272772800, 5, 'activity', 1, 0)), array(array('1', 3, 0, 1272772800, 1, 0, 'logins'), array(2, 3, 0, 1272772800, 1, 0, 'activity'), array('1', 3, 0, 1272772800, 1, 0, 'activity'), array('1', 0, 0, 1272772800, 0, 0, 'activity')))) Expected log array ( 'courseid' => '1', 'timeend' => 1272772800, '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' => '1272729600', 'roleid' => '0', 'stattype' => 'logins', 'stat1' => '1', 'stat2' => '1', )), 2 => stdClass::__set_state(array( 'id' => '2', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '5', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 3 => stdClass::__set_state(array( 'id' => '3', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 4 => stdClass::__set_state(array( 'id' => '4', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 5 => stdClass::__set_state(array( 'id' => '5', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '8', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 6 => stdClass::__set_state(array( 'id' => '6', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), 7 => stdClass::__set_state(array( 'id' => '7', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), 8 => stdClass::__set_state(array( 'id' => '8', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '6', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), 9 => stdClass::__set_state(array( 'id' => '9', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '5', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), ) Failed asserting that 0 is greater than 0. /Users/aparup/Sites/i/lib/tests/statslib_test.php:1132 /Users/aparup/Sites/i/lib/tests/statslib_test.php:1418 /Users/aparup/Sites/i/lib/phpunit/classes/advanced_testcase.php:76 To re-run: phpunit statslib_daily_testcase lib/tests/statslib_test.php 10) statslib_daily_testcase::test_statslib_cron_daily with data set #8 (array(array(1, 1272686410, 2, '1', 'login'), array(2, 1272686420, 2, '1', 'view')), array(array(array('1', 1272772800, 0, 'logins', 1, 1), array(2, 1272772800, 5, 'enrolments', 1, 0), array(2, 1272772800, 0, 'enrolments', 1, 0), array('1', 1272772800, 0, 'enrolments', 3, 1), array('1', 1272772800, 8, 'enrolments', 3, 1), array('1', 1272772800, 0, 'activity', 1, 0), array('1', 1272772800, 8, 'activity', 1, 0)), array(array('1', 2, 0, 1272772800, 1, 0, 'logins'), array('1', 2, 0, 1272772800, 1, 0, 'activity'), array('1', 0, 0, 1272772800, 0, 0, 'activity')))) Expected log array ( 'courseid' => '1', 'timeend' => 1272772800, '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' => '1272729600', 'roleid' => '0', 'stattype' => 'logins', 'stat1' => '1', 'stat2' => '1', )), 2 => stdClass::__set_state(array( 'id' => '2', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '5', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 3 => stdClass::__set_state(array( 'id' => '3', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 4 => stdClass::__set_state(array( 'id' => '4', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 5 => stdClass::__set_state(array( 'id' => '5', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '8', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 6 => stdClass::__set_state(array( 'id' => '6', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), 7 => stdClass::__set_state(array( 'id' => '7', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '8', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), ) Failed asserting that 0 is greater than 0. /Users/aparup/Sites/i/lib/tests/statslib_test.php:1132 /Users/aparup/Sites/i/lib/tests/statslib_test.php:1418 /Users/aparup/Sites/i/lib/phpunit/classes/advanced_testcase.php:76 To re-run: phpunit statslib_daily_testcase lib/tests/statslib_test.php 11) statslib_daily_testcase::test_statslib_cron_daily_no_default_profile_id Expected log array ( 'courseid' => '1', 'timeend' => 1272772800, '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' => '1272729600', 'roleid' => '0', 'stattype' => 'logins', 'stat1' => '0', 'stat2' => '0', )), 2 => stdClass::__set_state(array( 'id' => '2', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '5', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 3 => stdClass::__set_state(array( 'id' => '3', 'courseid' => '2', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '1', 'stat2' => '0', )), 4 => stdClass::__set_state(array( 'id' => '4', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'enrolments', 'stat1' => '3', 'stat2' => '1', )), 5 => stdClass::__set_state(array( 'id' => '5', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '0', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), 6 => stdClass::__set_state(array( 'id' => '6', 'courseid' => '1', 'timeend' => '1272729600', 'roleid' => '6', 'stattype' => 'activity', 'stat1' => '1', 'stat2' => '0', )), ) Failed asserting that 0 is greater than 0. /Users/aparup/Sites/i/lib/tests/statslib_test.php:1132 /Users/aparup/Sites/i/lib/tests/statslib_test.php:1527 /Users/aparup/Sites/i/lib/phpunit/classes/advanced_testcase.php:76 To re-run: phpunit statslib_daily_testcase lib/tests/statslib_test.php FAILURES! Tests: 19, Assertions: 117, Failures: 11.