コード例 #1
0
ファイル: StringTest.php プロジェクト: dmeroff/string
 public function testCreate()
 {
     // using constructor
     $string = new String('Hello, world!');
     $this->assertAttributeEquals('Hello, world!', 'string', $string);
     // using static function 'make'
     $string = String::make('Hello, world!');
     $this->assertAttributeEquals('Hello, world!', 'string', $string);
 }