BLUE
PHP 7.4.33
Path:
/var/www/podiocopy.bitkit.dk/httpdocs/vendor.new/phpunit/phpunit-mock-objects/tests
Run
Logout
Edit File
Size: 1.10 KB
Close
/var/www/podiocopy.bitkit.dk/httpdocs/vendor.new/phpunit/phpunit-mock-objects/tests/ProxyObjectTest.php
Text
Base64
<?php /* * This file is part of the PHPUnit_MockObject package. * * (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 2.0.0 */ class Framework_ProxyObjectTest extends PHPUnit_Framework_TestCase { public function testMockedMethodIsProxiedToOriginalMethod() { $proxy = $this->getMockBuilder('Bar') ->enableProxyingToOriginalMethods() ->getMock(); $proxy->expects($this->once()) ->method('doSomethingElse'); $foo = new Foo; $this->assertEquals('result', $foo->doSomething($proxy)); } public function testMockedMethodWithReferenceIsProxiedToOriginalMethod() { $proxy = $this->getMockBuilder('MethodCallbackByReference') ->enableProxyingToOriginalMethods() ->getMock(); $a = $b = $c = 0; $proxy->callback($a, $b, $c); $this->assertEquals(1, $b); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 5
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
MockObject
DIR
-
drwxr-xr-x
2015-10-02 06:51:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
_fixture
DIR
-
drwxr-xr-x
2015-10-02 06:51:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
bootstrap.php
103 B
lrw-r--r--
2015-10-02 06:51:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
GeneratorTest.php
6.60 KB
lrw-r--r--
2015-10-02 06:51:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MockBuilderTest.php
3.38 KB
lrw-r--r--
2015-10-02 06:51:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
MockObjectTest.php
26.83 KB
lrw-r--r--
2015-10-02 06:51:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ProxyObjectTest.php
1.10 KB
lrw-r--r--
2015-10-02 06:51:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).