PHP Classes

File: test/ssa/converter/SimpleUrlFactoryTest.php

Recommend this page to a friend!
  Classes of thomas   SSA   test/ssa/converter/SimpleUrlFactoryTest.php   Download  
File: test/ssa/converter/SimpleUrlFactoryTest.php
Role: Unit test script
Content type: text/plain
Description: Unit test script
Class: SSA
Call PHP classes from JavaScript on Web pages
Author: By
Last change:
Date: 9 years ago
Size: 485 bytes
 

Contents

Class file image Download
<?php

namespace ssa\converter;

use
ssa\converter\SimpleUrlFactory;

/**
 * Description of SimpleUrlFactoryTest
 *
 * @author thomas
 */
class SimpleUrlFactoryTest extends \PHPUnit_Framework_TestCase {
   
    public function
testUrlReplace() {
       
$urlFactory = new SimpleUrlFactory('http://foo.bar/action={action}');
       
$this->assertEquals(
           
'http://foo.bar/action=service.test',
           
$urlFactory->constructUrl('service.test')
        );
    }
}