Version 1
[yaffs-website] / vendor / phpunit / phpunit / src / Framework / Constraint / SameSize.php
diff --git a/vendor/phpunit/phpunit/src/Framework/Constraint/SameSize.php b/vendor/phpunit/phpunit/src/Framework/Constraint/SameSize.php
new file mode 100644 (file)
index 0000000..e372c1a
--- /dev/null
@@ -0,0 +1,28 @@
+<?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.
+ */
+
+/**
+ * @since Class available since Release 3.6.0
+ */
+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));
+    }
+}