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

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.5.0RC2/CodeSniffer/Standards/Generic/Tests/NamingConventions/ConstructorNameUnitTest.inc

  • Committer: Package Import Robot
  • Author(s): David Prévot
  • Date: 2014-07-21 14:42:41 UTC
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: package-import@ubuntu.com-20140721144241-t0v9knmgtzftbsw6
Tags: upstream-1.5.3
Import upstream version 1.5.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
class TestClass extends MyClass
3
 
{
4
 
 
5
 
    function TestClass() {
6
 
        parent::MyClass();
7
 
        parent::__construct();
8
 
    }
9
 
 
10
 
    function __construct() {
11
 
        parent::MyClass();
12
 
        parent::__construct();
13
 
    }
14
 
 
15
 
}
16
 
 
17
 
class MyClass
18
 
{
19
 
 
20
 
    function MyClass() {
21
 
        parent::YourClass();
22
 
        parent::__construct();
23
 
    }
24
 
 
25
 
    function __construct() {
26
 
        parent::YourClass();
27
 
        parent::__construct();
28
 
    }
29
 
 
30
 
}
31
 
 
32
 
class MyClass extends \MyNamespace\SomeClass
33
 
{
34
 
    function __construct() {
35
 
        something::MyNamespace();
36
 
    }
37
 
 
38
 
}
39
 
?>