The branch, master has been updated via af6954fe826a0c6c4abf67cb51b209ce6b01dd83 (commit) from e3306f098d5d46ad327e5aa4234ad767414ddc7f (commit)
- Log ----------------------------------------------------------------- commit af6954fe826a0c6c4abf67cb51b209ce6b01dd83 Author: Michal Čihař mcihar@suse.cz 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