PHP Classes

File: .vscode/test.code-snippets

Recommend this page to a friend!
  Classes of Rodolfo Berrios Arce   XR PHP Debugger Online   .vscode/test.code-snippets   Download  
File: .vscode/test.code-snippets
Role: Class source
Content type: text/plain
Description: Class source
Class: XR PHP Debugger Online
Debug PHP code using a Web interface
Author: By
Last change:
Date: 2 years ago
Size: 1,159 bytes
 

Contents

Class file image Download
{
    "test": {
        "description": "Chevere/Xr test",
        "prefix": "test",
        "body": [
            "<?php",
            "",
            "
namespace Chevere\\Xr\\Tests\\\\${TM_DIRECTORY/.*tests\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+\\\\}${5:+\\\\}$5/g};",
            "",
            "
use PHPUnit\\Framework\\TestCase;",
            "",
            "
final class $TM_FILENAME_BASE extends TestCase",
            "
{",
            "
\t$0",
            "
}"
        ]
    },
    "
test-method": {
        "
description": "Chevere/Xr test method",
        "
prefix": "test-method",
        "
body": [
            "
public function test${1:Name}(): void",
            "
{",
            "
\t$0",
            "
}"
        ]
    },
    "
testResource": {
        "
description": "Chevere/Xr test resource",
        "
prefix": "test-resource",
        "
body": [
            "
<?php",
            "",
            "
namespace Chevere\\Xr\\Tests\\\\${TM_DIRECTORY/.*tests\\/(([^\\/]*)(\\/)?)|(\\/)([^\\/]*)/$2${3:+\\\\}${5:+\\\\}$5/g};",
            "",
            "
final class $TM_FILENAME_BASE",
            "
{",
            "
\t$0",
            "
}"
        ]
    },
}