Skip to content

Commit

Permalink
Explicit, verbose, and informative exclusion of methods in ClassMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
leodido committed Jul 28, 2015
1 parent 3ea0fb7 commit 622091a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
15 changes: 12 additions & 3 deletions library/Hydrator/ClassMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,26 @@ public function __construct($underscoreSeparatedKeys = true)
// Exclude this methods from the extraction
$this->filterComposite->addFilter(
'model',
new MethodMatchFilter('getModel'),
new MethodMatchFilter(
'getModel',
true // exclude method
),
FilterComposite::CONDITION_AND
);
$this->filterComposite->addFilter(
'hydrator',
new MethodMatchFilter('getHydrator'),
new MethodMatchFilter(
'getHydrator',
true // exclude method
),
FilterComposite::CONDITION_AND
);
$this->filterComposite->addFilter(
'inputFilter',
new MethodMatchFilter('getInputFilter'),
new MethodMatchFilter(
'getInputFilter',
true // exclude method
),
FilterComposite::CONDITION_AND
);
}
Expand Down
1 change: 0 additions & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
<log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
<log type="coverage-clover" target="./build/logs/clover.xml"/>
<log type="coverage-html" target="./build/report" charset="UTF-8" highlight="true" lowUpperBound="35" highLowerBound="70"/>
<log type="testdox-text" target="./build/testdox/testdox.txt"/>
</logging>
</phpunit>

0 comments on commit 622091a

Please sign in to comment.