first commit
This commit is contained in:
parent
1dc157cfb2
commit
a110b096bb
5 changed files with 160 additions and 0 deletions
14
public/dummy.php
Normal file
14
public/dummy.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
@ini_set('zend_monitor.enable', 0);
|
||||
if (@function_exists('output_cache_disable')) {
|
||||
@output_cache_disable();
|
||||
}
|
||||
if (isset($_GET['debugger_connect']) && $_GET['debugger_connect'] == 1) {
|
||||
if (function_exists('debugger_connect')) {
|
||||
debugger_connect();
|
||||
exit();
|
||||
} else {
|
||||
echo "No connector is installed.";
|
||||
}
|
||||
}
|
||||
|
||||
11
public/index.php
Executable file
11
public/index.php
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
<h1>Site1.debian-07.formation.dev</h1>
|
||||
<?php
|
||||
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
require_once 'test0.php';
|
||||
require_once 'test1.php';
|
||||
|
||||
for ($i=0;$i<10;$i++) {
|
||||
echo $i;
|
||||
}
|
||||
41
public/test0.php
Normal file
41
public/test0.php
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
/**
|
||||
* Fichier d'exemple pour une
|
||||
* fonction statique dans une
|
||||
* classe
|
||||
*
|
||||
* @category Application
|
||||
* @package Main
|
||||
* @copyright Moi 2012
|
||||
* @author Moi <moi@mail.com>
|
||||
* @license Proprio http://monsite.com/license
|
||||
* @version Release 1 (2012-03-28)
|
||||
*
|
||||
* @param unknown_type $test
|
||||
*/
|
||||
|
||||
/**
|
||||
* Classe qui ne sert à rien
|
||||
* @category Application
|
||||
* @package Main
|
||||
* @copyright Moi 2012
|
||||
* @author Moi <moi@mail.com>
|
||||
* @license Proprio http://monsite.com/license
|
||||
* @version Release 1 (2012-03-28)
|
||||
*
|
||||
* @param unknown_type $test
|
||||
*/
|
||||
class Main
|
||||
{
|
||||
|
||||
/**
|
||||
* Fonction qui renvoiie l'inverse de son
|
||||
* paramètre
|
||||
* @param boolean $test
|
||||
* @return boolean
|
||||
*/
|
||||
function test ($test = false)
|
||||
{
|
||||
return !$test;
|
||||
}
|
||||
}
|
||||
6
public/test1.php
Normal file
6
public/test1.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
$ia = 10
|
||||
while ( $ia < 20 ){
|
||||
print $ia;
|
||||
$ia++;
|
||||
}
|
||||
88
scripts/build.xml
Executable file
88
scripts/build.xml
Executable file
|
|
@ -0,0 +1,88 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="site1" basedir="." default="build">
|
||||
|
||||
<target name="prepare">
|
||||
<delete dir="${project.basedir}/build" />
|
||||
<mkdir dir="${project.basedir}/build" />
|
||||
<mkdir dir="${project.basedir}/build/logs" />
|
||||
<mkdir dir="${project.basedir}/build/charts" />
|
||||
<mkdir dir="${project.basedir}/build/codebrowser" />
|
||||
<mkdir dir="${project.basedir}/build/phpdoc" />
|
||||
<mkdir dir="${project.basedir}/build/docblox"/>
|
||||
</target>
|
||||
|
||||
<target name="phpcs">
|
||||
<exec executable="phpcs">
|
||||
<arg line="--report=checkstyle " />
|
||||
<arg line="--report-file=${project.basedir}/build/logs/checkstyle.xml" />
|
||||
<arg line="--standard=Zend" />
|
||||
<arg line="${project.basedir}/public" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="docblox">
|
||||
<exec executable="docblox">
|
||||
<arg line="--directory ${project.basedir}/public" />
|
||||
<arg line="--target ${project.basedir}/build/docblox" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="phpcb">
|
||||
<exec executable="phpcb">
|
||||
<arg line="--log ${project.basedir}/build/logs" />
|
||||
<arg line="--source ${project.basedir}/public"/>
|
||||
<arg line="--output ${project.basedir}/build/codebrowser"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="phpmd">
|
||||
<exec executable="phpmd">
|
||||
<arg line="${project.basedir}/public" />
|
||||
<arg line="xml" />
|
||||
<arg line="codesize,unusedcode" />
|
||||
<arg line="--reportfile ${project.basedir}/build/logs/phpmd.xml"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="phpcpd">
|
||||
<exec executable="phpcpd">
|
||||
<arg line="--min-lines 4" />
|
||||
<arg line="--min-tokens 2" />
|
||||
<arg line="--log-pmd ${project.basedir}/build/logs/phpcpd.xml" />
|
||||
<arg line="${project.basedir}"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="phploc">
|
||||
<exec executable="phploc">
|
||||
<arg line="--log-csv ${project.basedir}/build/logs/phploc.csv"/>
|
||||
<arg line="${project.basedir}" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="phpdoc">
|
||||
<exec executable="phpdoc">
|
||||
<arg line="--directory ${project.basedir}/public"/>
|
||||
<arg line="--target ${project.basedir}/build/phpdoc" />
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="pdepend">
|
||||
<exec executable="pdepend">
|
||||
<arg line="--jdepend-xml=${project.basedir}/build/logs/pdepend.xml"/>
|
||||
<arg line="--jdepend-chart=${project.basedir}/build/charts/depends.svg"/>
|
||||
<arg line="--overview-pyramid=${project.basedir}/build/charts/overview.svg"/>
|
||||
<arg line="${project.basedir}"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
<target name="phpunit">
|
||||
<exec executable="phpunit" dir="${project.basedir}/tests"/>
|
||||
</target>
|
||||
|
||||
|
||||
<target name="build"
|
||||
depends="prepare,phpcs,phploc,phpmd,phpunit,phpcpd,pdepend,phpcb,phpdoc,docblox">
|
||||
</target>
|
||||
|
||||
</project>
|
||||
Loading…
Add table
Add a link
Reference in a new issue