-
-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #340 from fredden/missing-fixed-file/Squiz.Comment…
…ing.ClosingDeclarationComment `Squiz.Commenting.ClosingDeclarationComment` - add missing `.fixed` file for test-suite, and fix a bug found during
- Loading branch information
Showing
2 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
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
85 changes: 85 additions & 0 deletions
85
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,85 @@ | ||
<?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 |