-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
89 additions
and
0 deletions.
There are no files selected for viewing
89 changes: 89 additions & 0 deletions
89
src/Standards/Squiz/Tests/Commenting/ClosingDeclarationCommentUnitTest.inc.fixed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?php | ||
|
||
function __construct() | ||
{ | ||
}//end __construct() | ||
|
||
function myFunction() | ||
{ | ||
}//end myFunction() | ||
|
||
function ourFunction() | ||
{ | ||
}//end ourFunction() | ||
|
||
function yourFunction() | ||
{ | ||
}//end yourFunction() | ||
|
||
class TestClass | ||
{ | ||
function __construct() | ||
{ | ||
}//end __construct() | ||
|
||
function myFunction() | ||
{ | ||
}//end myFunction() | ||
|
||
function yourFunction() | ||
{ | ||
}//end yourFunction() | ||
|
||
}//end class | ||
|
||
abstract class TestClass | ||
{ | ||
abstract function myFunction(); | ||
|
||
function ourFunction() | ||
{ | ||
}//end ourFunction() | ||
|
||
function yourFunction() | ||
{ | ||
}//end yourFunction() | ||
|
||
}//end class | ||
|
||
interface TestClass | ||
{ | ||
function myFunction(); | ||
function ourFunction(); | ||
function yourFunction(); | ||
|
||
}//end interface | ||
|
||
class TestClass | ||
{ | ||
}//end class | ||
|
||
|
||
abstract class TestClass | ||
{ | ||
}//end class | ||
|
||
|
||
interface TestClass | ||
{ | ||
}//end interface | ||
|
||
|
||
class MyClass | ||
{ | ||
public function myFunction(); | ||
}//end class | ||
|
||
// Closures don't need end comments. | ||
echo preg_replace_callback('~-([a-z])~', function ($match) { return strtoupper($match[1]); }, 'hello-world'); | ||
|
||
class TestClass | ||
{ | ||
}//end class | ||
|
||
enum MissingClosingComment { | ||
}//end enum | ||
|
||
|
||
enum HasClosingComment { | ||
}//end enum |