1: <?php
2: namespace Crunchmail\PHPUnit;
3:
4: class IsGenericResourceConstraint extends \PHPUnit_Framework_Constraint_IsInstanceOf
5: {
6: public function __construct()
7: {
8: $name = '\Crunchmail\Resources\GenericResource';
9: parent::__construct($name);
10: }
11:
12: /**
13: * Make it public
14: */
15: public function matches($other)
16: {
17: return parent::matches($other);
18: }
19: }
20: