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); }