summaryrefslogtreecommitdiff
path: root/php/tests
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-04 23:29:55 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-04 23:29:55 -0400
commit92df15ae3fb5ba341cb34308702108a9a21e447c (patch)
treea26e57624633b1287f3d7e644e0627eee8cd0bb6 /php/tests
parentf1fc3b66e32cfb8b89d8ff684d86bb33da838cfb (diff)
downloadluigi-template-92df15ae3fb5ba341cb34308702108a9a21e447c.tar.bz2
luigi-template-92df15ae3fb5ba341cb34308702108a9a21e447c.zip
php: add api documentation, fix namespaces in composer.json and tests
Diffstat (limited to 'php/tests')
-rw-r--r--php/tests/TemplateTest.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/php/tests/TemplateTest.php b/php/tests/TemplateTest.php
index 18e5a6e..b6e72c9 100644
--- a/php/tests/TemplateTest.php
+++ b/php/tests/TemplateTest.php
@@ -3,7 +3,7 @@ declare(strict_types = 1);
namespace Pablotron\Luigi\Tests;
use \PHPUnit\Framework\TestCase;
-use \Luigi\Template;
+use \Pablotron\Luigi\Template;
final class TemplateTest extends TestCase {
public function testNewTemplate() : void {
@@ -89,12 +89,12 @@ final class TemplateTest extends TestCase {
}
public function testCustomGlobalFilter() : void {
- \Luigi\Filters::$FILTERS['barify'] = function($s) {
+ \Pablotron\Luigi\Filters::$FILTERS['barify'] = function($s) {
return 'BAR';
};
# create template cache
- $cache = new \Luigi\Cache([
+ $cache = new \Pablotron\Luigi\Cache([
'foo' => 'foo%{bar|barify}',
]);
@@ -124,7 +124,7 @@ final class TemplateTest extends TestCase {
public function testCache() : void {
# create template cache
- $cache = new \Luigi\Cache([
+ $cache = new \Pablotron\Luigi\Cache([
'foo' => 'foo%{bar}',
]);
@@ -148,7 +148,7 @@ final class TemplateTest extends TestCase {
}
public function testUnknownKeyError() : void {
- $this->expectException(\Luigi\UnknownKeyError::class);
+ $this->expectException(\Pablotron\Luigi\UnknownKeyError::class);
# run template
$r = Template::once('foo%{unknown-key}', [
@@ -157,7 +157,7 @@ final class TemplateTest extends TestCase {
}
public function testUnknownFilterError() : void {
- $this->expectException(\Luigi\UnknownFilterError::class);
+ $this->expectException(\Pablotron\Luigi\UnknownFilterError::class);
# run template
$r = Template::once('foo%{bar|unknown-filter}', [
@@ -166,10 +166,10 @@ final class TemplateTest extends TestCase {
}
public function testUnknownTemplateError() : void {
- $this->expectException(\Luigi\UnknownTemplateError::class);
+ $this->expectException(\Pablotron\Luigi\UnknownTemplateError::class);
# create cache
- $cache = new \Luigi\Cache([
+ $cache = new \Pablotron\Luigi\Cache([
'foo' => 'foo%{bar}',
]);