예제 #1
0
 /**
  * @covers FooClass::foo
  * @todo   Implement testFoo().
  */
 public function testFoo()
 {
     $this->assertEquals(100, $this->object->foo());
 }
예제 #2
0
<?php

echo BarClass::foo();
echo FooClass::foo();
예제 #3
0
파일: wrap.in.php 프로젝트: nochso/phormat
<?php

function foo($longParameterName1, $longParameterName2, $longParameterName3, $longParameterName4 = '', $longParameterName1 = '')
{
}
$closure = function ($longParameterName1, $longParameterName2, $longParameterName3, $longParameterName4 = '', $longParameterName1 = '') {
    $innerClosure = function ($param) use($longUseVariable1, $longUseVariable2, $longUseVariable3, $longUseVariable4, $longUseVariable5) {
        foo('longParameterName1', 'longParameterName2', 'longParameterName3', 'longParameterName4', 'longParameterName1');
        $obj->foo('longParameterName1', 'longParameterName2', 'longParameterName3', 'longParameterName4', 'longParameterName1');
        FooClass::foo('longParameterName1', 'longParameterName2', 'longParameterName3', 'longParameterName4', 'longParameterName1');
    };
};
class X extends Y implements LongInterfaceName1, LongInterfaceName2, LongInterfaceName3, LongInterfaceName4, LongInterfaceName5, LongInterfaceName5
{
    use SomeLongTraitName1, SomeLongTraitName2, SomeLongTraitName3, SomeLongTraitName4, SomeLongTraitName5;
    public function foo($longParameterName1, $longParameterName2, $longParameterName3, $longParameterName4 = '', $longParameterName1 = '')
    {
    }
}
class Y
{
    use SomeLongTraitName1, SomeLongTraitName2, SomeLongTraitName3, SomeLongTraitName4, SomeLongTraitName5 {
        B::smallTalk insteadof SomeLongTraitName1;
        A::bigTalk insteadof SomeLongTraitName2;
        B::bigTalk as talk;
    }
    /**
     * @var int
     */
    private $somePrivatePropertiesOnTheSameLine1, $somePrivatePropertiesOnTheSameLine2, $somePrivatePropertiesOnTheSameLine3;
}