tests/Images.php
[Pman.Core] / tests / Images.php
1 <?php
2
3 require_once 'Pman.php';
4
5 class Pman_Core_tests_Images extends Pman
6 {
7      function get() {
8         // test...
9         echo '<PRE>';
10         require_once 'Pman/Core/Images.php';
11         $ret = Pman_Core_Images::replaceImg('
12                 <img src="http://test.php/Core/Images/Thumb/200x40/34/test.png">
13                 <img src="http://test.php/Images/34/test.png" width="100">
14                 <a href="http://test.php/Images/Download/34/test.png">test</a>
15                 
16         ', 'http://roojs.com/index.php/');
17         echo htmlspecialchars($ret);
18         
19      }
20      function output()
21      {
22         exit;
23      }
24 }