protected function Framework_AssertTest::sameValues in Zircon Profile 8        
                          
                  
                        Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/tests/Framework/AssertTest.php \Framework_AssertTest::sameValues()
 
 
2 calls to Framework_AssertTest::sameValues()
  - Framework_AssertTest::equalProvider in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
 
  
  - Framework_AssertTest::sameProvider in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
 
  
 
File
 
   - vendor/phpunit/phpunit/tests/Framework/AssertTest.php, line 663
 
  
  Class
  
  - Framework_AssertTest 
 
  - @since      Class available since Release 2.0.0
 
Code
protected function sameValues() {
  $object = new SampleClass(4, 8, 15);
  
  $file = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'foo.xml';
  $resource = fopen($file, 'r');
  return array(
    
    array(
      null,
      null,
    ),
    
    array(
      'a',
      'a',
    ),
    
    array(
      0,
      0,
    ),
    
    array(
      2.3,
      2.3,
    ),
    array(
      1 / 3,
      1 - 2 / 3,
    ),
    array(
      log(0),
      log(0),
    ),
    
    array(
      array(),
      array(),
    ),
    array(
      array(
        0 => 1,
      ),
      array(
        0 => 1,
      ),
    ),
    array(
      array(
        0 => null,
      ),
      array(
        0 => null,
      ),
    ),
    array(
      array(
        'a',
        'b' => array(
          1,
          2,
        ),
      ),
      array(
        'a',
        'b' => array(
          1,
          2,
        ),
      ),
    ),
    
    array(
      $object,
      $object,
    ),
    
    array(
      $resource,
      $resource,
    ),
  );
}