diff options
Diffstat (limited to 'vendor/phpunit/phpunit/src/Framework/Constraint/SameSize.php')
-rw-r--r-- | vendor/phpunit/phpunit/src/Framework/Constraint/SameSize.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/phpunit/phpunit/src/Framework/Constraint/SameSize.php b/vendor/phpunit/phpunit/src/Framework/Constraint/SameSize.php new file mode 100644 index 0000000..336566a --- /dev/null +++ b/vendor/phpunit/phpunit/src/Framework/Constraint/SameSize.php @@ -0,0 +1,25 @@ +<?php +/* + * This file is part of PHPUnit. + * + * (c) Sebastian Bergmann <sebastian@phpunit.de> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +class PHPUnit_Framework_Constraint_SameSize extends PHPUnit_Framework_Constraint_Count +{ + /** + * @var int + */ + protected $expectedCount; + + /** + * @param int $expected + */ + public function __construct($expected) + { + parent::__construct($this->getCountOf($expected)); + } +} |