Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
local
/
wp
/
tests
📤 Upload
📝 New File
📁 New Folder
Close
Editing: WPCLITest.php
<?php use WP_CLI\Tests\TestCase; class WPCLITest extends TestCase { public function testGetPHPBinary() { $this->assertSame( WP_CLI\Utils\get_php_binary(), WP_CLI::get_php_binary() ); } public function testErrorToString() { $this->expectException( 'InvalidArgumentException' ); $this->expectExceptionMessage( "Unsupported argument type passed to WP_CLI::error_to_string(): 'boolean'" ); WP_CLI::error_to_string( true ); } }
Save
Cancel