~ubuntu-branches/ubuntu/utopic/php-codesniffer/utopic-proposed

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.3.4/CodeSniffer/Standards/PEAR/Tests/Functions/FunctionDeclarationUnitTest.inc

  • Committer: Package Import Robot
  • Author(s): Thomas Goirand
  • Date: 2012-05-31 16:37:24 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120531163724-u6aiaubu8ks5dh5z
Tags: 1.3.4-0.1
* Non-maintainer upload.
* New upstream release (Closes: #599617, #634825).
* Swtiched debian/copyright to format 1.0 (rewrite was needed anyway, as the
upstream license changed).
* Switched package to pkg-php-tools and debhelper 8 sequencer.
* Now running unit tests at build time (so depends on phpunit (>= 3.6)).
* Section is now PHP.
* Added missing Build-Depends-Indep: php-pear.
* Added missing ${misc:Depends}.
* Added Vcs fields.
* Added homepage field.
* Reviewed short and long description.
* Added dependency on php-timer.
* Standards-Version: is now 3.9.3 (lots of changes, see above...).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
public function someFunctionWithAVeryLongName($firstParameter='something',
 
3
   $secondParameter='booooo', $third=null, $fourthParameter=false,
 
4
     $fifthParameter=123.12, $sixthParam=true
 
5
){
 
6
}
 
7
 
 
8
function someFunctionWithAVeryLongName2($firstParameter='something',
 
9
$secondParameter='booooo', $third=null, $fourthParameter=false,
 
10
$fifthParameter=123.12, $sixthParam=true
 
11
)  {
 
12
}
 
13
 
 
14
function blah() {
 
15
}
 
16
 
 
17
function blah()
 
18
{
 
19
}
 
20
 
 
21
class MyClass
 
22
{
 
23
 
 
24
    public function someFunctionWithAVeryLongName($firstParameter='something',
 
25
        $secondParameter='booooo', $third=null, $fourthParameter=false,
 
26
        $fifthParameter=123.12, $sixthParam=true
 
27
    ) /** w00t */ {
 
28
    }
 
29
 
 
30
    public function someFunctionWithAVeryLongName2(
 
31
        $firstParameter='something', $secondParameter='booooo', $third=null
 
32
    ) {
 
33
    }
 
34
 
 
35
    protected abstract function processTokenWithinScope(
 
36
        PHP_CodeSniffer_File $phpcsFile,
 
37
        $stackPtr,
 
38
        $currScope
 
39
    );
 
40
 
 
41
    protected abstract function processToken(
 
42
        PHP_CodeSniffer_File $phpcsFile,
 
43
        $stackPtr,
 
44
        $currScope);
 
45
 
 
46
}
 
47
 
 
48
function getInstalledStandards(
 
49
    $includeGeneric=false,
 
50
    $standardsDir=''
 
51
)
 
52
{
 
53
}
 
54
 
 
55
function &testFunction($arg1,
 
56
    $arg2,
 
57
) {
 
58
}
 
59
 
 
60
function testFunction($arg1,
 
61
$arg2) {
 
62
}
 
63
 
 
64
function validateUrl(
 
65
    $url,
 
66
    $requireScheme=TRUE,
 
67
    array $allowedSchemes=array(
 
68
                           'http',
 
69
                           'https',
 
70
                          )
 
71
) {
 
72
}
 
73
 
 
74
?>