From 8e70d6583398325acebe9d01e2f48c4b4cbba2f9 Mon Sep 17 00:00:00 2001
From: Cristiano Magro <cristiano.magro@vola.it>
Date: Tue, 27 Aug 2019 11:21:37 +0200
Subject: [PATCH] Inizio implementazione creazione filtro per plupload
---
tests/Vola/UploadFile/FilesFilterTest.php | 36 ++++++++++++++++++++++++++++++++++++
src/Vola/UploadFile/Autoloader.php | 1 +
src/Vola/UploadFile/FilesFilter.class.php | 13 +++++++++++++
3 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/src/Vola/UploadFile/Autoloader.php b/src/Vola/UploadFile/Autoloader.php
index d9ef722..4021e10 100644
--- a/src/Vola/UploadFile/Autoloader.php
+++ b/src/Vola/UploadFile/Autoloader.php
@@ -25,6 +25,7 @@
private static $classes = array(
'FileUpload' => 'FileUpload.class.php',
'SetupUpload' => 'SetupUpload.class.php',
+ 'FilesFilter' => 'FilesFilter.class.php',
'Upload_Exc_Error' => 'Exc/Error.php',
'Upload_Exc_Extension' => 'Exc/Extension.php',
'Upload_Exc_ExtensionNotValid' => 'Exc/ExtensionNotValid.php',
diff --git a/src/Vola/UploadFile/FilesFilter.class.php b/src/Vola/UploadFile/FilesFilter.class.php
new file mode 100644
index 0000000..41198a7
--- /dev/null
+++ b/src/Vola/UploadFile/FilesFilter.class.php
@@ -0,0 +1,13 @@
+<?php
+/**
+ * User: Cristiano Magro
+ * Date: 08/07/2019
+ */
+
+class FilesFilter {
+
+ public function toJson()
+ {
+ return '{}';
+ }
+}
\ No newline at end of file
diff --git a/tests/Vola/UploadFile/FilesFilterTest.php b/tests/Vola/UploadFile/FilesFilterTest.php
new file mode 100644
index 0000000..126d059
--- /dev/null
+++ b/tests/Vola/UploadFile/FilesFilterTest.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * User: Cristiano Magro
+ * Date: 08/07/2019
+ */
+
+class FilesFilterTest extends PHPUnit_Framework_TestCase
+{
+ /** @var FilesFilter $object */
+ protected $object;
+
+ /**
+ * Set up fixture, inizializzazione dei test.
+ * Eseguito prima di ogni test
+ */
+ protected function setUp() {
+ $this->object = new FilesFilter();
+ }
+
+ /**
+ * Tears down the fixture, for example, closes a network connection.
+ * This method is called after a test is executed.
+ */
+ protected function tearDown() {
+
+ }
+
+ public function testEmpty()
+ {
+ $atteso = '{}';
+ $esito = $this->object->toJson();
+
+ $this->assertEquals($atteso, $esito);
+ }
+
+}
\ No newline at end of file
--
Gitblit v1.8.0