forked from xdebug/xdebug
-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- MFH: Fixed abstract method detection.
SVN Rev: 2660
- Loading branch information
Showing
3 changed files
with
73 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
interface ezcFeedParser | ||
{ | ||
/** | ||
* Returns true if the parser can parse the provided XML document object, | ||
* false otherwise. | ||
* | ||
* @param DOMDocument $xml The XML document object to check for parseability | ||
* @return bool | ||
*/ | ||
public static function canParse( DOMDocument $xml ); | ||
|
||
/** | ||
* Parses the provided XML document object and returns an ezcFeed object | ||
* from it. | ||
* | ||
* @throws ezcFeedParseErrorException | ||
* If an error was encountered during parsing. | ||
* | ||
* @param DOMDocument $xml The XML document object to parse | ||
* @return ezcFeed | ||
*/ | ||
public function parse( DOMDocument $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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--TEST-- | ||
Test with Code Coverage with abstract methods (ZE2) | ||
--SKIPIF-- | ||
<?php if (!extension_loaded("xdebug")) print "skip"; ?> | ||
<?php if(version_compare(zend_version(), "2.0.0-dev", '<')) echo "skip Zend Engine 2 needed\n"; ?> | ||
--INI-- | ||
xdebug.default_enable=1 | ||
xdebug.auto_trace=0 | ||
xdebug.trace_options=0 | ||
xdebug.trace_output_dir=/tmp | ||
xdebug.collect_params=1 | ||
xdebug.collect_return=0 | ||
xdebug.auto_profile=0 | ||
xdebug.profiler_enable=0 | ||
xdebug.dump_globals=0 | ||
xdebug.show_mem_delta=0 | ||
xdebug.trace_format=0 | ||
xdebug.extended_info=1 | ||
--FILE-- | ||
<?php | ||
xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE); | ||
|
||
include 'coverage4.inc'; | ||
|
||
xdebug_stop_code_coverage(false); | ||
var_dump(xdebug_get_code_coverage()); | ||
?> | ||
--EXPECTF-- | ||
array(2) { | ||
["%scoverage4.inc"]=> | ||
array(2) { | ||
[2]=> | ||
int(1) | ||
[26]=> | ||
int(1) | ||
} | ||
["%scoverage4.php"]=> | ||
array(2) { | ||
[4]=> | ||
int(1) | ||
[6]=> | ||
int(1) | ||
} | ||
} |
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