Skip to content

Commit

Permalink
Update test to take in account the folder change.
Browse files Browse the repository at this point in the history
  • Loading branch information
teromene committed Nov 16, 2016
1 parent bb04775 commit f7840ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/I8lnPluginTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
require "vendor/autoload.php";
require_once "src/I8lnPlugin.php";
require_once "src/Teromene/I8lnPlugin.php";

use Rain\Tpl;

Expand Down Expand Up @@ -29,7 +29,7 @@ public static function setUpBeforeClass() {
);

Tpl::configure($config);
Tpl::registerPlugin( new Tpl\Plugin\I8lnPlugin() );
Tpl::registerPlugin( new Teromene\I8lnPlugin() );

}

Expand All @@ -51,7 +51,7 @@ public function testDefaultFunctionDoubleQuotes() {

public function testCustomFunctionSingleQuotes() {

Tpl\Plugin\I8lnPlugin::setI8lnFunction("gettext");
Teromene\I8lnPlugin::setI8lnFunction("gettext");

$expectedString = self::$TPLBaseText . "<?php echo gettext('Hello world !'); ?>\n\n";
$this->assertEquals($expectedString, self::getTemplateString("testSingleQuotes"), 'The expected value for default function single quotes is wrong !');
Expand All @@ -61,7 +61,7 @@ public function testCustomFunctionSingleQuotes() {

public function testCustomFunctionDoubleQuotes() {

Tpl\Plugin\I8lnPlugin::setI8lnFunction("gettext");
Teromene\I8lnPlugin::setI8lnFunction("gettext");

$expectedString = self::$TPLBaseText . "<?php echo gettext(\"Hello world !\"); ?>\n\n";
$this->assertEquals($expectedString, self::getTemplateString("testDoubleQuotes"), 'The expected value for default function single quotes is wrong !');
Expand Down

0 comments on commit f7840ca

Please sign in to comment.