Laravel version update
Laravel version update
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
|
||||
namespace SebastianBergmann\RecursionContext;
|
||||
|
||||
use PHPUnit_Framework_TestCase;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @covers SebastianBergmann\RecursionContext\Context
|
||||
*/
|
||||
class ContextTest extends PHPUnit_Framework_TestCase
|
||||
class ContextTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var \SebastianBergmann\RecursionContext\Context
|
||||
@@ -42,7 +42,7 @@ class ContextTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
public function valuesProvider()
|
||||
{
|
||||
$obj2 = new \stdClass();
|
||||
$obj2 = new \stdClass();
|
||||
$obj2->foo = 'bar';
|
||||
|
||||
$obj3 = (object) array(1,2,"Test\r\n",4,5,6,7,8);
|
||||
@@ -51,17 +51,17 @@ class ContextTest extends PHPUnit_Framework_TestCase
|
||||
//@codingStandardsIgnoreStart
|
||||
$obj->null = null;
|
||||
//@codingStandardsIgnoreEnd
|
||||
$obj->boolean = true;
|
||||
$obj->integer = 1;
|
||||
$obj->double = 1.2;
|
||||
$obj->string = '1';
|
||||
$obj->text = "this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext";
|
||||
$obj->object = $obj2;
|
||||
$obj->boolean = true;
|
||||
$obj->integer = 1;
|
||||
$obj->double = 1.2;
|
||||
$obj->string = '1';
|
||||
$obj->text = "this\nis\na\nvery\nvery\nvery\nvery\nvery\nvery\rlong\n\rtext";
|
||||
$obj->object = $obj2;
|
||||
$obj->objectagain = $obj2;
|
||||
$obj->array = array('foo' => 'bar');
|
||||
$obj->array2 = array(1,2,3,4,5,6);
|
||||
$obj->array3 = array($obj, $obj2, $obj3);
|
||||
$obj->self = $obj;
|
||||
$obj->array = array('foo' => 'bar');
|
||||
$obj->array2 = array(1,2,3,4,5,6);
|
||||
$obj->array3 = array($obj, $obj2, $obj3);
|
||||
$obj->self = $obj;
|
||||
|
||||
$storage = new \SplObjectStorage();
|
||||
$storage->attach($obj2);
|
||||
@@ -85,10 +85,9 @@ class ContextTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testAddFails($value)
|
||||
{
|
||||
$this->setExpectedException(
|
||||
'SebastianBergmann\\RecursionContext\\Exception',
|
||||
'Only arrays and objects are supported'
|
||||
);
|
||||
$this->expectException(Exception::class);
|
||||
$this->expectExceptionMessage('Only arrays and objects are supported');
|
||||
|
||||
$this->context->add($value);
|
||||
}
|
||||
|
||||
@@ -99,10 +98,9 @@ class ContextTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testContainsFails($value)
|
||||
{
|
||||
$this->setExpectedException(
|
||||
'SebastianBergmann\\RecursionContext\\Exception',
|
||||
'Only arrays and objects are supported'
|
||||
);
|
||||
$this->expectException(Exception::class);
|
||||
$this->expectExceptionMessage('Only arrays and objects are supported');
|
||||
|
||||
$this->context->contains($value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user