/vendor/phpunit/phpunit/src/Framework/Constraint/SameSize.php

https://bitbucket.org/alan_cordova/api-sb-map · PHP · 25 lines · 9 code · 2 blank · 14 comment · 0 complexity · 75616cd0d1bb713b5220cc2d64d28f8f MD5 · raw file

  1. <?php
  2. /*
  3. * This file is part of PHPUnit.
  4. *
  5. * (c) Sebastian Bergmann <sebastian@phpunit.de>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. class PHPUnit_Framework_Constraint_SameSize extends PHPUnit_Framework_Constraint_Count
  11. {
  12. /**
  13. * @var int
  14. */
  15. protected $expectedCount;
  16. /**
  17. * @param int $expected
  18. */
  19. public function __construct($expected)
  20. {
  21. parent::__construct($this->getCountOf($expected));
  22. }
  23. }