diff --git a/test/classes/PMA_DisplayResults_test.php b/test/classes/PMA_DisplayResults_test.php
index 5da925cb57..d47c2e5ffc 100644
--- a/test/classes/PMA_DisplayResults_test.php
+++ b/test/classes/PMA_DisplayResults_test.php
@@ -844,7 +844,7 @@ class PMA_DisplayResults_test extends PHPUnit_Framework_TestCase
'DELETE FROM `data`.`new` WHERE `new`.`id` = 1',
'[%_PMA_CHECKBOX_DIR_%]',
'odd row_0 vpointer vmarker',
- '
| '
+ ' | '
)
);
}
@@ -1070,7 +1070,7 @@ class PMA_DisplayResults_test extends PHPUnit_Framework_TestCase
'
Copy',
'
Delete',
'DELETE FROM `data`.`new` WHERE `new`.`id` = 1',
- ' |
+ ' | |
Edit
|
Copy
@@ -1167,7 +1167,7 @@ class PMA_DisplayResults_test extends PHPUnit_Framework_TestCase
Copy
|
Edit
- | | '
+ | '
)
);
}
@@ -1252,7 +1252,7 @@ class PMA_DisplayResults_test extends PHPUnit_Framework_TestCase
'
Copy',
'
Delete',
'DELETE FROM `data`.`new` WHERE `new`.`id` = 1',
- ' | '
+ ' | '
)
);
}
@@ -1351,7 +1351,7 @@ class PMA_DisplayResults_test extends PHPUnit_Framework_TestCase
'
Copy',
'
Delete',
null,
- ' | '
+ ' | '
)
);
}
diff --git a/test/libraries/PMA_Zip_test.php b/test/libraries/PMA_Zip_test.php
new file mode 100644
index 0000000000..12f28a545b
--- /dev/null
+++ b/test/libraries/PMA_Zip_test.php
@@ -0,0 +1,102 @@
+object = $this->getMockForAbstractClass('ZipFile');
+
+ }
+
+ /**
+ * Tears down the fixture, for example, closes a network connection.
+ * This method is called after a test is executed.
+ *
+ * @access protected
+ * @return void
+ */
+ protected function tearDown()
+ {
+ unset($this->object);
+ }
+
+ /**
+ * Test for setDoWrite
+ */
+ public function testSetDoWrite(){
+ $this->object->setDoWrite();
+ $this->assertTrue($this->object->doWrite);
+ }
+
+ /**
+ * Test for unix2DosTime
+ *
+ * @param $unixtime
+ * @param $output
+ *
+ * @dataProvider providerForTestUnix2DosTime
+ */
+ public function testUnix2DosTime($unixTime, $output){
+ $this->assertEquals(
+ $this->object->unix2DosTime($unixTime),
+ $output
+ );
+ }
+
+ public function providerForTestUnix2DosTime(){
+ return array(
+ array(
+ 123456,
+ 2162688
+ ),
+ array(
+ 234232,
+ 2162688
+ ),
+ );
+ }
+
+ /**
+ * Test for addFile
+ */
+ public function testAddFile(){
+ $this->assertEquals(
+ $this->object->addFile('This is test content for the file', 'Test file'),
+ ''
+ );
+ $this->assertTrue(!empty($this->object->ctrl_dir));
+ }
+
+ /**
+ * Test for file
+ */
+ public function testFile(){
+ $file = $this->object->file();
+ $this->assertTrue(
+ !empty($file)
+ );
+ }
+}