Version 1
[yaffs-website] / vendor / phpunit / phpunit / src / Framework / Constraint / SameSize.php
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
11 /**
12  * @since Class available since Release 3.6.0
13  */
14 class PHPUnit_Framework_Constraint_SameSize extends PHPUnit_Framework_Constraint_Count
15 {
16     /**
17      * @var int
18      */
19     protected $expectedCount;
20
21     /**
22      * @param int $expected
23      */
24     public function __construct($expected)
25     {
26         parent::__construct($this->getCountOf($expected));
27     }
28 }