PageRenderTime 15ms CodeModel.GetById 9ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/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
11class PHPUnit_Framework_Constraint_SameSize extends PHPUnit_Framework_Constraint_Count
12{
13    /**
14     * @var int
15     */
16    protected $expectedCount;
17
18    /**
19     * @param int $expected
20     */
21    public function __construct($expected)
22    {
23        parent::__construct($this->getCountOf($expected));
24    }
25}