public function testToArray()
 {
     $expected = [ConfigEnum::ID => '', ConfigEnum::KEY => ''];
     $this->assertEquals($expected, $this->credentials->toArray());
 }
Exemplo n.º 2
0
 /**
  * @param bool $includeNull = false
  * @return array
  */
 public function toArray($includeNull = false)
 {
     $array = parent::toArray($includeNull);
     $credentials = $this->credentials->toArray($includeNull);
     return array_merge($credentials, $array);
 }