BossBey File Manager
PHP:
7.4.33
OS:
Linux
User:
root
Root
/
home
/
vssraipur
/
public_html
/
pdf
/
vendor
/
phake
/
phake
/
tests
📤 Upload
📝 New File
📁 New Folder
Close
Editing: PhakeClientTest.php
<?php class PhakeClientTest extends PHPUnit_Framework_TestCase { protected function setup() { // unset the $client in Phake $refClass = new ReflectionClass('Phake'); $clientProperty = $refClass->getProperty('client'); $clientProperty->setAccessible(true); $clientProperty->setValue(null); } public function testAutoDetectsPHPUnitClient() { $client = Phake::getClient(); $this->assertInstanceOf('Phake_Client_PHPUnit', $client); } }
Save
Cancel