17 lines
		
	
	
		
			414 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			414 B
		
	
	
	
		
			PHP
		
	
	
		
			Executable File
		
	
	
	
	
| <?php
 | |
| 
 | |
| require __DIR__ . '/../src/Create.php';
 | |
| 
 | |
| use function Stringy\create as s;
 | |
| 
 | |
| class CreateTestCase extends PHPUnit_Framework_TestCase
 | |
| {
 | |
|     public function testCreate()
 | |
|     {
 | |
|         $stringy = s('foo bar', 'UTF-8');
 | |
|         $this->assertInstanceOf('Stringy\Stringy', $stringy);
 | |
|         $this->assertEquals('foo bar', (string) $stringy);
 | |
|         $this->assertEquals('UTF-8', $stringy->getEncoding());
 | |
|     }
 | |
| }
 |