Inizio implementazione creazione filtro per plupload
2 files added
1 files modified
| | |
| | | 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', |
| New file |
| | |
| | | <?php |
| | | /** |
| | | * User: Cristiano Magro |
| | | * Date: 08/07/2019 |
| | | */ |
| | | |
| | | class FilesFilter { |
| | | |
| | | public function toJson() |
| | | { |
| | | return '{}'; |
| | | } |
| | | } |
| New file |
| | |
| | | <?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); |
| | | } |
| | | |
| | | } |