Skip to content

Instantly share code, notes, and snippets.

@shahmal1yev
Created September 15, 2025 00:10
Show Gist options
  • Save shahmal1yev/7b63c5c776c4332ae7ddccdd13de3b3d to your computer and use it in GitHub Desktop.
Save shahmal1yev/7b63c5c776c4332ae7ddccdd13de3b3d to your computer and use it in GitHub Desktop.
PHPStorm Live Template Variables

$CLASS_NAME$

fileNameWithoutExtension()

$NAMESPACE$

regularExpression(regularExpression(regularExpression(regularExpression(capitalize(fileRelativePath()), "\/", "\\\\"), "(.php)", ""), fileNameWithoutExtension(), "\\\\"), "\\\\\\\\", "")


namespace $NAMESPACE$;

use Tests\TestCase;
use Tests\Traits\WithAuth;
use Illuminate\Foundation\Testing\RefreshDatabase;

class $CLASS_NAME$ extends TestCase
{
    use RefreshDatabase;
    use WithAuth;
    
    $END$
}
<?php

namespace Tests\Feature\Http\Controllers\API\Service\Index\Params;

use Tests\TestCase;
use Tests\Traits\WithAuth;
use Illuminate\Foundation\Testing\RefreshDatabase;

class OrderByTest extends TestCase
{
    use RefreshDatabase;
    use WithAuth;
    
    
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment