Subir todo el proyecto incluyendo vendor y dependencias

This commit is contained in:
Admin
2026-01-16 20:33:13 -06:00
parent cf8ecfcf64
commit 0b3d76822d
2394 changed files with 2382358 additions and 40 deletions

29
vendor/react/partial/tests/UtilTest.php vendored Executable file
View File

@@ -0,0 +1,29 @@
<?php
namespace React\Partial;
use React\Partial\Util as Partial;
class UtilTest extends \PHPUnit_Framework_TestCase
{
public function testBind()
{
$div = $this->createDivFunction();
$divFun = Partial::bind($div, 10, 5);
$this->assertSame(0.02, $divFun(100));
}
public function testBindRight()
{
$div = $this->createDivFunction();
$divFun = Partial::bindRight($div, 10, 5);
$this->assertSame(2, $divFun(100));
}
private function createDivFunction()
{
return function ($a, $b, $c) {
return $a / $b / $c;
};
}
}