Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
wp /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
WP_CLI
[ DIR ]
drwxr-xr-x
data
[ DIR ]
drwxr-xr-x
ArgValidationTest.php
2.18
KB
-rw-r--r--
CommandFactoryTest.php
14.23
KB
-rw-r--r--
ConfiguratorTest.php
2.48
KB
-rw-r--r--
DocParserTest.php
4.22
KB
-rw-r--r--
ExtractorTest.php
8.03
KB
-rw-r--r--
FileCacheTest.php
6.17
KB
-rw-r--r--
HelpTest.php
2.97
KB
-rw-r--r--
InflectorTest.php
868
B
-rw-r--r--
LoggingTest.php
3.11
KB
-rw-r--r--
ProcessTest.php
1.01
KB
-rw-r--r--
SynopsisParserTest.php
5.24
KB
-rw-r--r--
UtilsTest.php
42.23
KB
-rw-r--r--
WPCLITest.php
439
B
-rw-r--r--
WpVersionCompareTest.php
4.26
KB
-rw-r--r--
bootstrap.php
567
B
-rw-r--r--
mock-requests-transport.php
951
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : HelpTest.php
<?php use WP_CLI\Tests\TestCase; class HelpTest extends TestCase { public static function set_up_before_class() { require_once dirname( __DIR__ ) . '/php/class-wp-cli.php'; require_once dirname( __DIR__ ) . '/php/class-wp-cli-command.php'; require_once dirname( __DIR__ ) . '/php/commands/help.php'; } public function test_parse_reference_links() { $test_class = new ReflectionClass( 'Help_Command' ); $method = $test_class->getMethod( 'parse_reference_links' ); $method->setAccessible( true ); $desc = 'This is a [reference link](https://wordpress.org/). It should be displayed very nice!'; $result = $method->invokeArgs( null, [ $desc ] ); $expected = <<<EOL This is a [reference link][1]. It should be displayed very nice! --- [1] https://wordpress.org/ EOL; $this->assertSame( $expected, $result ); $desc = 'This is a [reference link](https://wordpress.org/) and [second link](http://wp-cli.org/). It should be displayed very nice!'; $result = $method->invokeArgs( null, [ $desc ] ); $expected = <<<EOL This is a [reference link][1] and [second link][2]. It should be displayed very nice! --- [1] https://wordpress.org/ [2] http://wp-cli.org/ EOL; $this->assertSame( $expected, $result ); $desc = <<<EOL This is a [reference link](https://wordpress.org/) and [second link](http://wp-cli.org/). It should be displayed very nice! EOL; $result = $method->invokeArgs( null, [ $desc ] ); $expected = <<<EOL This is a [reference link][1] and [second link][2]. It should be displayed very nice! --- [1] https://wordpress.org/ [2] http://wp-cli.org/ EOL; $this->assertSame( $expected, $result ); $desc = <<<EOL This is a [reference link](https://wordpress.org/) and [second link](http://wp-cli.org/). It should be displayed very nice! ## Example It doesn't expect to be link here like [reference link](https://wordpress.org/). EOL; $result = $method->invokeArgs( null, [ $desc ] ); $expected = <<<EOL This is a [reference link][1] and [second link][2]. It should be displayed very nice! --- [1] https://wordpress.org/ [2] http://wp-cli.org/ ## Example It doesn't expect to be link here like [reference link](https://wordpress.org/). EOL; $this->assertSame( $expected, $result ); $desc = <<<EOL ## Example It doesn't expect to be link here like [reference link](https://wordpress.org/). EOL; $result = $method->invokeArgs( null, [ $desc ] ); $expected = <<<EOL ## Example It doesn't expect to be link here like [reference link](https://wordpress.org/). EOL; $this->assertSame( $expected, $result ); $desc = <<<EOL This is a long description. It doesn't have any link. ## Example It doesn't expect to be link here like [reference link](https://wordpress.org/). EOL; $result = $method->invokeArgs( null, [ $desc ] ); $expected = <<<EOL This is a long description. It doesn't have any link. ## Example It doesn't expect to be link here like [reference link](https://wordpress.org/). EOL; $this->assertSame( $expected, $result ); } }
Close