[svn r21924] Fixed function choose image

skala
Arthur Portugal 17 years ago
parent 0e03b621b5
commit 14568899f9
  1. 13
      tests/main/inc/lib/fileDisplay.lib.test.php

@ -1,5 +1,5 @@
<?php <?php
require_once(api_get_path(LIBRARY_PATH).'fileDisplay.lib.php');
class TestFileDisplay extends UnitTestCase { class TestFileDisplay extends UnitTestCase {
public function TestFileDisplay(){ public function TestFileDisplay(){
@ -26,15 +26,12 @@ class TestFileDisplay extends UnitTestCase {
} }
public function testChooseImage(){ public function testChooseImage(){
//$file_name=''; static $type, $image;
ob_start(); $file_name = '';
$res =choose_image(); $res = choose_image($file_name);
//$res =ob_get_contents();
ob_end_clean();
$this->assertEqual($res,'defaut.gif'); $this->assertEqual($res,'defaut.gif');
$this->assertTrue(is_string($res)); $this->assertTrue(is_string($res));
//var_dump($res); //var_dump($file_name);
} }
public function testFormatFileSize(){ public function testFormatFileSize(){

Loading…
Cancel
Save