Ejemplo n.º 1
0
 /**
  * @inheritDoc
  */
 public function lines()
 {
     $lines = [];
     foreach ($this->data as $key => $value) {
         $lines[] = Str::upperCaseFirst($key, '-') . ': ' . (is_array($value) ? join(', ', $value) : $value);
     }
     return $lines;
 }
Ejemplo n.º 2
0
 public function testLowerCaseFirst()
 {
     $this->assertEquals('x-powered-by', Str::lowerCaseFirst('X-Powered-by', '-'));
     $this->assertEquals('x_powered_by', Str::lowerCaseFirst('X_Powered_by', '_'));
     $this->assertEquals('x_powered-by', Str::lowerCaseFirst('X_powered-by', '_'));
 }