Add vagrant machine, new test and travis-ci config
This commit is contained in:
21
test/classes/FileServiceTest.php
Normal file
21
test/classes/FileServiceTest.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
if(!class_exists("TestTemplate")) {
|
||||
include dirname(__FILE__).'/../TestTemplate.php';
|
||||
}
|
||||
|
||||
class FileServiceTest extends TestTemplate{
|
||||
var $obj = null;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function testSample(){
|
||||
$this->assertEquals(1, 1);
|
||||
|
||||
}
|
||||
}
|
||||
37
test/classes/LanguageManagerTest.php
Normal file
37
test/classes/LanguageManagerTest.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
if(!class_exists("TestTemplate")) {
|
||||
include dirname(__FILE__).'/../TestTemplate.php';
|
||||
}
|
||||
|
||||
class LanguageManagerTest extends TestTemplate{
|
||||
var $obj = null;
|
||||
|
||||
protected function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function testSample(){
|
||||
|
||||
$this->p("cat|".LanguageManager::tran('cat'));
|
||||
$this->p("cat|".LanguageManager::tran('cat'));
|
||||
|
||||
$this->p("solid|".LanguageManager::tran('solid'));
|
||||
$this->p("solid|".LanguageManager::tran('solid'));
|
||||
|
||||
|
||||
$this->p("one file|".LanguageManager::tran('one file'));
|
||||
$this->p("2 files|".LanguageManager::tran('2 files'));
|
||||
|
||||
$this->p(LanguageManager::getTranslations());
|
||||
|
||||
$string = "wert <t>Logged In</t> rrr";
|
||||
|
||||
$txt = LanguageManager::translateTnrText($string);
|
||||
|
||||
$this->p("Tx1:".$txt);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user