Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[implements #9069871] Implement efferent- and afferent-coupling for c…
…lasses.
- Loading branch information
1 parent
f710b7e
commit 07537c2
Showing
14 changed files
with
222 additions
and
11 deletions.
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
10 changes: 5 additions & 5 deletions
10
src/test/php/PHP/Depend/Log/Phpunit/_expected/phpunit-log.xml
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
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
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
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
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
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
29 changes: 29 additions & 0 deletions
29
...d/_code/metrics/Coupling/testGetNodeMetricsReturnsExpectedCaForFunctionCountsTypeOnce.php
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,29 @@ | ||
<?php | ||
class testGetNodeMetricsReturnsExpectedCaForCountsSameTypeOnlyOnce extends Exception | ||
{ | ||
|
||
} | ||
|
||
/** | ||
* @throws testGetNodeMetricsReturnsExpectedCaForCountsSameTypeOnlyOnce | ||
* @param testGetNodeMetricsReturnsExpectedCaForCountsSameTypeOnlyOnce $o | ||
* @return testGetNodeMetricsReturnsExpectedCaForCountsSameTypeOnlyOnce | ||
*/ | ||
function foo(testGetNodeMetricsReturnsExpectedCaForCountsSameTypeOnlyOnce $o) | ||
{ | ||
if ($o instanceof testGetNodeMetricsReturnsExpectedCaForCountsSameTypeOnlyOnce) { | ||
throw new testGetNodeMetricsReturnsExpectedCaForCountsSameTypeOnlyOnce(); | ||
} | ||
return new testGetNodeMetricsReturnsExpectedCaForCountsSameTypeOnlyOnce(); | ||
} | ||
|
||
/** | ||
* @return void | ||
* @throws testGetNodeMetricsReturnsExpectedCaForCountsSameTypeOnlyOnce | ||
*/ | ||
function bar(testGetNodeMetricsReturnsExpectedCaForCountsSameTypeOnlyOnce $o) | ||
{ | ||
if ($o instanceof testGetNodeMetricsReturnsExpectedCaForCountsSameTypeOnlyOnce) { | ||
throw new testGetNodeMetricsReturnsExpectedCaForCountsSameTypeOnlyOnce(); | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...Depend/_code/metrics/Coupling/testGetNodeMetricsReturnsExpectedCaForFunctionException.php
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,14 @@ | ||
<?php | ||
/** | ||
* @return void | ||
* @throws testGetNodeMetricsReturnsExpectedCaForFunctionException | ||
*/ | ||
function foo() | ||
{ | ||
|
||
} | ||
|
||
class testGetNodeMetricsReturnsExpectedCaForFunctionException extends Exception | ||
{ | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
...Depend/_code/metrics/Coupling/testGetNodeMetricsReturnsExpectedCaForFunctionParameter.php
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,10 @@ | ||
<?php | ||
class testGetNodeMetricsReturnsExpectedCaForFunctionParameter | ||
{ | ||
|
||
} | ||
|
||
function foo(testGetNodeMetricsReturnsExpectedCaForFunctionParameter $o) | ||
{ | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
...Depend/_code/metrics/Coupling/testGetNodeMetricsReturnsExpectedCaForFunctionReference.php
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,10 @@ | ||
<?php | ||
class testGetNodeMetricsReturnsExpectedCaForFunctionReference | ||
{ | ||
|
||
} | ||
|
||
function foo() | ||
{ | ||
return new testGetNodeMetricsReturnsExpectedCaForFunctionReference(); | ||
} |
13 changes: 13 additions & 0 deletions
13
...epend/_code/metrics/Coupling/testGetNodeMetricsReturnsExpectedCaForFunctionReturnType.php
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,13 @@ | ||
<?php | ||
/** | ||
* @return testGetNodeMetricsReturnsExpectedCaForFunctionReturnType | ||
*/ | ||
function foo() | ||
{ | ||
|
||
} | ||
|
||
class testGetNodeMetricsReturnsExpectedCaForFunctionReturnType | ||
{ | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
...php/PHP/Depend/_code/metrics/Coupling/testGetNodeMetricsReturnsExpectedCaForFunctions.php
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,23 @@ | ||
<?php | ||
class testGetNodeMetricsReturnsExpectedCaForFunctions | ||
{ | ||
|
||
} | ||
|
||
function foo(testGetNodeMetricsReturnsExpectedCaForFunctions $o) | ||
{ | ||
|
||
} | ||
|
||
function bar() | ||
{ | ||
return new testGetNodeMetricsReturnsExpectedCaForFunctions(); | ||
} | ||
|
||
/** | ||
* @return testGetNodeMetricsReturnsExpectedCaForFunctions | ||
*/ | ||
function baz() | ||
{ | ||
|
||
} |
2 changes: 1 addition & 1 deletion
2
...end/_code/metrics/Coupling/testGetNodeMetricsReturnsExpectedCaWithObjectInstantiation.php
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