1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-06 22:26:28 +02:00

use Minify\Test namespace for tests

This commit is contained in:
Elan Ruusamäe
2017-12-22 17:58:01 +02:00
parent 6236431c8f
commit 7d60fb9d0f
24 changed files with 49 additions and 2 deletions

View File

@@ -20,7 +20,7 @@
"classmap": ["lib/"] "classmap": ["lib/"]
}, },
"autoload-dev": { "autoload-dev": {
"classmap": ["tests/TestCase.php"] "psr-4": {"Minify\\Test\\": "tests/"}
}, },
"require": { "require": {
"ext-pcre": "*", "ext-pcre": "*",

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class HTTPConditionalGetTest extends TestCase class HTTPConditionalGetTest extends TestCase
{ {
public function TestData() public function TestData()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class HTTPEncoderTest extends TestCase class HTTPEncoderTest extends TestCase
{ {
/** /**

View File

@@ -1,6 +1,7 @@
<?php <?php
use JSMin\JSMin; use JSMin\JSMin;
use Minify\Test\TestCase;
class JsMinTest extends TestCase class JsMinTest extends TestCase
{ {

View File

@@ -1,6 +1,8 @@
<?php <?php
class JsClosureCompilerTest extends PHPUnit_Framework_TestCase use Minify\Test\TestCase;
class JsClosureCompilerTest extends TestCase
{ {
public function test1() public function test1()
{ {

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class LessSourceTest extends TestCase class LessSourceTest extends TestCase
{ {
public function setUp() public function setUp()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyBuildTest extends TestCase class MinifyBuildTest extends TestCase
{ {
public function test() public function test()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyCSSUriRewriterTest extends TestCase class MinifyCSSUriRewriterTest extends TestCase
{ {
public function setUp() public function setUp()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyCacheAPCTest extends TestCase class MinifyCacheAPCTest extends TestCase
{ {
public function setUp() public function setUp()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyCacheFileTest extends TestCase class MinifyCacheFileTest extends TestCase
{ {
public function test1() public function test1()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyCacheMemcacheTest extends TestCase class MinifyCacheMemcacheTest extends TestCase
{ {
/** @var Memcache */ /** @var Memcache */

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyCacheWinCacheTest extends TestCase class MinifyCacheWinCacheTest extends TestCase
{ {
public function setUp() public function setUp()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyCacheZendPlatformTest extends TestCase class MinifyCacheZendPlatformTest extends TestCase
{ {
public function setUp() public function setUp()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyClosureCompilerTest extends TestCase class MinifyClosureCompilerTest extends TestCase
{ {
public static function setupBeforeClass() public static function setupBeforeClass()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyCommentPreserverTest extends TestCase class MinifyCommentPreserverTest extends TestCase
{ {
public function test() public function test()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyHTMLHelperTest extends TestCase class MinifyHTMLHelperTest extends TestCase
{ {
private $realDocRoot; private $realDocRoot;

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyHTMLTest extends TestCase class MinifyHTMLTest extends TestCase
{ {
public function test1() public function test1()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyImportProcessorTest extends TestCase class MinifyImportProcessorTest extends TestCase
{ {
public function test() public function test()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyLinesTest extends TestCase class MinifyLinesTest extends TestCase
{ {
public function test_lines() public function test_lines()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyNailgunClosureCompilerTest extends TestCase class MinifyNailgunClosureCompilerTest extends TestCase
{ {
public static function setupBeforeClass() public static function setupBeforeClass()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyTest extends TestCase class MinifyTest extends TestCase
{ {
public function test_Minify() public function test_Minify()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class MinifyYuiCSSTest extends TestCase class MinifyYuiCSSTest extends TestCase
{ {
public static function setupBeforeClass() public static function setupBeforeClass()

View File

@@ -1,5 +1,7 @@
<?php <?php
use Minify\Test\TestCase;
class ScssSourceTest extends TestCase class ScssSourceTest extends TestCase
{ {
public function setUp() public function setUp()

View File

@@ -1,5 +1,9 @@
<?php <?php
namespace Minify\Test;
use Minify_CacheInterface;
abstract class TestCase extends \PHPUnit\Framework\TestCase abstract class TestCase extends \PHPUnit\Framework\TestCase
{ {
/** @var string */ /** @var string */