finished string::encoding test.
This commit is contained in:
18
tests/cases/laravel/str.test.php
Normal file
18
tests/cases/laravel/str.test.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class StrTest extends PHPUnit_Framework_TestCase {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test the Str::encoding method.
|
||||||
|
*
|
||||||
|
* @group laravel
|
||||||
|
*/
|
||||||
|
public function testEncodingShouldReturnApplicationEncoding()
|
||||||
|
{
|
||||||
|
$this->assertEquals('UTF-8', Config::get('application.encoding'));
|
||||||
|
Config::set('application.encoding', 'foo');
|
||||||
|
$this->assertEquals('foo', Config::get('application.encoding'));
|
||||||
|
Config::set('application.encoding', 'UTF-8');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user