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

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-2.3.2/CodeSniffer/Standards/MySource/Tests/Channels/DisallowSelfActionsUnitTest.inc

  • Committer: Package Import Robot
  • Author(s): David Prévot, Greg Sherwood
  • Date: 2015-06-24 13:41:36 UTC
  • mfrom: (1.1.9)
  • Revision ID: package-import@ubuntu.com-20150624134136-dv60dnl6s20tdxwr
Tags: 2.3.3-1
[ Greg Sherwood ]
Prepare for 2.3.3 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
class SomethingActions
3
 
{
4
 
 
5
 
    private static function _x()
6
 
    {
7
 
    }
8
 
 
9
 
 
10
 
    public static function y()
11
 
    {
12
 
        self::z();
13
 
        static::z();
14
 
        SomethingActions::z();
15
 
        static::_x();
16
 
        self::a();
17
 
        static::a();
18
 
    }
19
 
 
20
 
 
21
 
    public static function z()
22
 
    {
23
 
    }
24
 
 
25
 
    protected static function a()
26
 
    {
27
 
        self::a(); // recursion, yay!
28
 
        self::z();
29
 
        static::y();
30
 
        self::b();
31
 
        echo self::$_myVar;
32
 
        echo static::$yourVar;
33
 
    }
34
 
}
35
 
 
36
 
abstract class AbstractEditingScreenModeWidgetActions extends AbstractEditingModeWidgetActions {
37
 
 
38
 
    public static function getScreens($systemName)
39
 
    {
40
 
 
41
 
    }//end getScreens()
42
 
 
43
 
    public static function setHelpScreenTitle()
44
 
    {
45
 
        // This is allowed because we are in an abstract class.
46
 
        $screens = self::getScreens('');
47
 
 
48
 
    }//end setHelpScreenTitle()
49
 
 
50
 
}//end class
51
 
?>