Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-10088

Cache mock does not unset database versions other than mysqli

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.9-RC1
    • Component/s: Test Suite
    • Labels:
      None

      Description

      	public function check(PHPUnit_Framework_Assert $test, $data, $ignore_db_info = true)
      	{
      		$cache_data = $this->data;
       
      		if ($ignore_db_info)
      		{
      			unset($cache_data['mysqli_version']);
      		}
       
      		$test->assertEquals($data, $cache_data);
      	}
      

      PHPUnit 3.5.10 by Sebastian Bergmann.
       
      ...............................................................  63 / 865 (  7%)
      ...............................................FFF............. 126 / 865 ( 14%)
      ............................................................... 189 / 865 ( 21%)
      ............................................................... 252 / 865 ( 29%)
      ............................................................... 315 / 865 ( 36%)
      ............................................................... 378 / 865 ( 43%)
      ............................................................... 441 / 865 ( 50%)
      ............................................................... 504 / 865 ( 58%)
      ............................................................... 567 / 865 ( 65%)
      ............................................................... 630 / 865 ( 72%)
      ............................................................... 693 / 865 ( 80%)
      ............................................................... 756 / 865 ( 87%)
      ............................................................... 819 / 865 ( 94%)
      ................................
       
      Time: 8 seconds, Memory: 32.50Mb
       
      There were 3 failures:
       
      1) phpbb_session_continue_test::test_session_begin_valid_session with data set #0 ('bar_session', '4', 'user agent', '127.0.0.1', array(array('anon_session', 1), array('bar_session', 4)), array(), 'If a request comes with a valid session id with matching user agent and IP, no new session should be created.')
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
       
      +    [mysql_version] => 5.1.49-1ubuntu8.1
       )
       
       
      2) phpbb_session_continue_test::test_session_begin_valid_session with data set #1 ('anon_session', '4', 'user agent', '127.0.0.1', array(array('__new_session_id__', 1), array('bar_session', 4)), array(array('1', NULL), array(NULL, NULL), array('__new_session_id__', NULL)), 'If a request comes with a valid session id and IP but different user id and user agent, a new anonymous session is created and the session matching the supplied session id is deleted.')
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
       
      +    [mysql_version] => 5.1.49-1ubuntu8.1
       )
       
       
      3) phpbb_session_init_test::test_login_session_create
      Failed asserting that two arrays are equal.
      --- Expected
      +++ Actual
      @@ @@
       
      +    [mysql_version] => 5.1.49-1ubuntu8.1
       )
       
       
      FAILURES!
      Tests: 851, Assertions: 10163, Failures: 3.
      

        Attachments

          Activity

            People

            • Assignee:
              bantu Andreas Fischer
              Reporter:
              bantu Andreas Fischer
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: