The branch, master has been updated
       via  af6954fe826a0c6c4abf67cb51b209ce6b01dd83 (commit)
      from  e3306f098d5d46ad327e5aa4234ad767414ddc7f (commit)


- Log -----------------------------------------------------------------
commit af6954fe826a0c6c4abf67cb51b209ce6b01dd83
Author: Michal Čihař <[email protected]>
Date:   Wed Aug 10 11:31:48 2011 +0200

    Add testcase for PMA_File::getContent

-----------------------------------------------------------------------

Summary of changes:
 test/classes/PMA_File_test.php |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/test/classes/PMA_File_test.php b/test/classes/PMA_File_test.php
index b43135c..63bf80a 100644
--- a/test/classes/PMA_File_test.php
+++ b/test/classes/PMA_File_test.php
@@ -48,6 +48,16 @@ class PMA_File_test extends PHPUnit_Framework_TestCase
         }
     }
 
+    /**
+     * @dataProvider compressedFiles
+     */
+    public function testBinaryContent($file, $mime)
+    {
+        $data = '0x' . bin2hex(file_get_contents($file));
+        $file = new PMA_File($file);
+        $this->assertEquals($data, $file->getContent());
+    }
+
     public function compressedFiles() {
         return array(
             array('./test/test_data/test.gz', 'application/gzip'),


hooks/post-receive
-- 
phpMyAdmin

------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to