Changeset 1484

Show
Ignore:
Timestamp:
03/30/08 23:58:03 (8 months ago)
Author:
mikey
Message:

added unit tests for net::stubbles::php::string classes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/test/php/net/stubbles/php/PHPTestSuite.php

    r1335 r1484  
    3434        $suite->addTestFile($dir . '/string/stubAbstractDecoratedStringEncoderTestCase.php'); 
    3535        $suite->addTestFile($dir . '/string/stubAbstractStringEncoderTestCase.php'); 
     36        $suite->addTestFile($dir . '/string/stubBase64EncoderTestCase.php'); 
     37        $suite->addTestFile($dir . '/string/stubHTMLSpecialCharsEncoderTestCase.php'); 
    3638        $suite->addTestFile($dir . '/string/stubMd5EncoderTestCase.php'); 
    3739        $suite->addTestFile($dir . '/string/stubRecursiveStringEncoderTestCase.php'); 
     40        $suite->addTestFile($dir . '/string/stubURLEncoderTestCase.php'); 
     41        $suite->addTestFile($dir . '/string/stubUTF8EncoderTestCase.php'); 
    3842        return $suite; 
    3943    } 
  • trunk/src/test/php/net/stubbles/php/string/stubAbstractStringEncoderTestCase.php

    r1304 r1484  
    9191        $this->abstractEncoder->apply('foo', 'invalid'); 
    9292    } 
     93 
     94    /** 
     95     * string encoders are reversible by default 
     96     * 
     97     * @test 
     98     */ 
     99    public function alwaysReversibleByDefault() 
     100    { 
     101        $this->assertTrue($this->abstractEncoder->isReversible()); 
     102    } 
    93103} 
    94104?>