Laravel version update
Laravel version update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of the PHPUnit_MockObject package.
|
||||
* This file is part of the phpunit-mock-objects package.
|
||||
*
|
||||
* (c) Sebastian Bergmann <sebastian@phpunit.de>
|
||||
*
|
||||
@@ -8,14 +8,13 @@
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @since Class available since Release 2.0.0
|
||||
*/
|
||||
class Framework_ProxyObjectTest extends PHPUnit_Framework_TestCase
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ProxyObjectTest extends TestCase
|
||||
{
|
||||
public function testMockedMethodIsProxiedToOriginalMethod()
|
||||
{
|
||||
$proxy = $this->getMockBuilder('Bar')
|
||||
$proxy = $this->getMockBuilder(Bar::class)
|
||||
->enableProxyingToOriginalMethods()
|
||||
->getMock();
|
||||
|
||||
@@ -23,14 +22,16 @@ class Framework_ProxyObjectTest extends PHPUnit_Framework_TestCase
|
||||
->method('doSomethingElse');
|
||||
|
||||
$foo = new Foo;
|
||||
|
||||
$this->assertEquals('result', $foo->doSomething($proxy));
|
||||
}
|
||||
|
||||
public function testMockedMethodWithReferenceIsProxiedToOriginalMethod()
|
||||
{
|
||||
$proxy = $this->getMockBuilder('MethodCallbackByReference')
|
||||
$proxy = $this->getMockBuilder(MethodCallbackByReference::class)
|
||||
->enableProxyingToOriginalMethods()
|
||||
->getMock();
|
||||
|
||||
$a = $b = $c = 0;
|
||||
|
||||
$proxy->callback($a, $b, $c);
|
||||
|
Reference in New Issue
Block a user