for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Redaxscript\Tests;
/**
* LanguageTest
*
* @since 2.2.0
* @package Redaxscript
* @category Tests
* @author Henry Ruhs
* @covers Redaxscript\Language
*/
class LanguageTest extends TestCaseAbstract
{
* testInit
* @since 3.0.0
public function testInit() : void
/* setup */
$this->_language->init('de');
$this->_language->init('en');
/* actual */
$actual = $this->_language;
/* compare */
$this->assertInstanceOf('Redaxscript\Language', $actual);
}
* testGetAndSet
* @since 2.4.0
public function testGetAndSet() : void
$this->_language->set('testKey', 'testValue');
$actual = $this->_language->get('testKey');
$this->assertEquals('testValue', $actual);
* testGetArray
* @since 4.0.0
public function testGetArray() : void
$actualArray = $this->_language->getArray();
$this->assertArrayHasKey('home', $actualArray);
* testGetInvalid
public function testGetInvalid() : void
$actual = $this->_language->get('invalidKey');
$this->assertNull($actual);