Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

View File

@@ -1,6 +1,6 @@
<?php
/*
* This file is part of the PHP_TokenStream package.
* This file is part of php-token-stream.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
@@ -8,21 +8,14 @@
* file that was distributed with this source code.
*/
/**
* Tests for the PHP_Token_FUNCTION class.
*
* @package PHP_TokenStream
* @subpackage Tests
* @author Sebastian Bergmann <sebastian@phpunit.de>
* @copyright Sebastian Bergmann <sebastian@phpunit.de>
* @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License
* @version Release: @package_version@
* @link http://github.com/sebastianbergmann/php-token-stream/
* @since Class available since Release 1.0.0
*/
class PHP_Token_ClosureTest extends PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;
class PHP_Token_ClosureTest extends TestCase
{
protected $functions;
/**
* @var PHP_Token_FUNCTION[]
*/
private $functions;
protected function setUp()
{
@@ -40,12 +33,12 @@ class PHP_Token_ClosureTest extends PHPUnit_Framework_TestCase
*/
public function testGetArguments()
{
$this->assertEquals(array('$foo' => null, '$bar' => null), $this->functions[0]->getArguments());
$this->assertEquals(array('$foo' => 'Foo', '$bar' => null), $this->functions[1]->getArguments());
$this->assertEquals(array('$foo' => null, '$bar' => null, '$baz' => null), $this->functions[2]->getArguments());
$this->assertEquals(array('$foo' => 'Foo', '$bar' => null, '$baz' => null), $this->functions[3]->getArguments());
$this->assertEquals(array(), $this->functions[4]->getArguments());
$this->assertEquals(array(), $this->functions[5]->getArguments());
$this->assertEquals(['$foo' => null, '$bar' => null], $this->functions[0]->getArguments());
$this->assertEquals(['$foo' => 'Foo', '$bar' => null], $this->functions[1]->getArguments());
$this->assertEquals(['$foo' => null, '$bar' => null, '$baz' => null], $this->functions[2]->getArguments());
$this->assertEquals(['$foo' => 'Foo', '$bar' => null, '$baz' => null], $this->functions[3]->getArguments());
$this->assertEquals([], $this->functions[4]->getArguments());
$this->assertEquals([], $this->functions[5]->getArguments());
}
/**
@@ -53,12 +46,12 @@ class PHP_Token_ClosureTest extends PHPUnit_Framework_TestCase
*/
public function testGetName()
{
$this->assertEquals('anonymous function', $this->functions[0]->getName());
$this->assertEquals('anonymous function', $this->functions[1]->getName());
$this->assertEquals('anonymous function', $this->functions[2]->getName());
$this->assertEquals('anonymous function', $this->functions[3]->getName());
$this->assertEquals('anonymous function', $this->functions[4]->getName());
$this->assertEquals('anonymous function', $this->functions[5]->getName());
$this->assertEquals('anonymousFunction:2#5', $this->functions[0]->getName());
$this->assertEquals('anonymousFunction:3#27', $this->functions[1]->getName());
$this->assertEquals('anonymousFunction:4#51', $this->functions[2]->getName());
$this->assertEquals('anonymousFunction:5#71', $this->functions[3]->getName());
$this->assertEquals('anonymousFunction:6#93', $this->functions[4]->getName());
$this->assertEquals('anonymousFunction:7#106', $this->functions[5]->getName());
}
/**