Changes in / [fc63b30:193006a]


Ignore:
Location:
src/webapp
Files:
16 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • src/webapp/build.xml

    rfc63b30 r193006a  
    4444
    4545
    46         <target name="dist" depends="buildwebservice,buildwebclient,test">
     46        <target name="dist" depends="buildwebservice,buildwebclient">
    4747                <echo msg="Creating archive"/>
    4848        <!--    <tar destfile="${builddir}/..//gnuboat-webapp.tar.gz" compression="gzip">
    … …  
    5858        </target>
    5959
    60         <target name="test">
    61                 <phpunit bootstrap="webservice/inc/autoloader.php" pharlocation="phpunit-4.8.9.phar" haltonfailure="true" haltonerror="true" printsummary="true">
    62                         <formatter type="plain" usefile="false"/>
    63                         <batchtest>
    64                                 <fileset dir="webservice">
    65                                         <include name="tests/*Test.php"/>
    66                                 </fileset>
    67                         </batchtest>
    68                 </phpunit>
    69         </target>
     60        <!-- <phpunit bootstrap="webservice/inc/autoloader.php" pharlocation="phpunit-4.8.9.phar" haltonfailure="true" haltonerror="true" printsummary="true">
     61                <formatter type="plain" usefile="false"/>
     62                <batchtest>
     63                        <fileset dir="webservice">
     64                                <include name="tests/ServiceTest.php"/>
     65                        </fileset>
     66                </batchtest>
     67        </phpunit> -->
    7068</project>
  • src/webapp/webservice/inc/autoloader.php

    rfc63b30 r193006a  
    2525}
    2626
    27 function canClassBeLoaded($class) {
    28         $parts = explode('\\', $class);
    29         $fileName = __DIR__ ."/". join("/", $parts) .".php";
    30         return file_exists($fileName);
    31 }
    32 
    3327spl_autoload_register("gnuboatAutoloader");
    3428
  • src/webapp/webservice/tests/ServiceTest.php

    rfc63b30 r193006a  
    2525final class ServiceTest extends PHPUnit_Framework_TestCase
    2626{
     27        /**
     28          * @runInSeparateProcess
     29          */
    2730        public function testData()
    2831        {
    … …  
    3336        }
    3437
     38        /**
     39          * @runInSeparateProcess
     40          */
    3541        public function testLogFiles()
    3642        {
    … …  
    4147        }
    4248       
     49        /**
     50          * @runInSeparateProcess
     51          */
    4352        public function testShutdown()
    4453        {
    … …  
    4958        }
    5059       
     60        /**
     61          * @runInSeparateProcess
     62          */
    5163        public function testMap()
    5264        {
Note: See TracChangeset for help on using the changeset viewer.