CssPreCompilerTest
extends TestCase
in package
CssPreCompilerTest Test Class
Tags
Table of Contents
- $compiler : object
- Our brave test subject
- $testDest : string
- Our brave test subject
- extClassProvider() : array<string|int, mixed>
- Data Provider for extensions and classes
- setUp() : void
- Individual test setup.
- setUpBeforeClass() : void
- Initial class setup.
- tearDownAfterClass() : void
- Final teardown method.
- testAllCompile() : void
- Test compiling all themes (default).
- testThemeCompile() : void
- Test compiling a single theme.
- delTree() : void
- Delete a directory tree; adapted from http://php.net/manual/en/function.rmdir.php
- makeFakeThemeStructure() : void
- Create fixture files in temp folder
- setupCompiler() : void
- Assign appropriate values to $this->testDest and $this->compiler
Properties
$compiler
Our brave test subject
protected
object
$compiler
$testDest
Our brave test subject
protected
string
$testDest
Methods
extClassProvider()
Data Provider for extensions and classes
public
static extClassProvider() : array<string|int, mixed>
Return values
array<string|int, mixed> —setUp()
Individual test setup.
public
setUp() : void
Return values
void —setUpBeforeClass()
Initial class setup.
public
static setUpBeforeClass() : void
Return values
void —tearDownAfterClass()
Final teardown method.
public
static tearDownAfterClass() : void
Return values
void —testAllCompile()
Test compiling all themes (default).
public
testAllCompile(string $ext, string $class) : void
Parameters
- $ext : string
-
Extension directory
- $class : string
-
Name of compiler class
Tags
Return values
void —testThemeCompile()
Test compiling a single theme.
public
testThemeCompile(string $ext, string $class) : void
Parameters
- $ext : string
-
Extension directory
- $class : string
-
Name of compiler class
Tags
Return values
void —delTree()
Delete a directory tree; adapted from http://php.net/manual/en/function.rmdir.php
protected
static delTree(string $dir) : void
Parameters
- $dir : string
-
Directory to delete.
Return values
void —makeFakeThemeStructure()
Create fixture files in temp folder
protected
static makeFakeThemeStructure(string $ext) : void
Parameters
- $ext : string
-
Extension directory
Return values
void —setupCompiler()
Assign appropriate values to $this->testDest and $this->compiler
protected
setupCompiler(string $ext, string $class) : void
Parameters
- $ext : string
-
Extension directory
- $class : string
-
Name of compiler class