Exemple #1
0
 public function testCreate()
 {
     $app = new Application('balls', 'dong');
     $array = $app->toArray();
     $this->assertEquals('balls', $array['applicationSecret']);
     $this->assertEquals('dong', $array['applicationId']);
 }
Exemple #2
0
 /**
  * @return array
  */
 public function toArray()
 {
     return ['userCredentials' => $this->userCredentials->toArray(), 'applicationCredentials' => $this->applicationCredentials->toArray()];
 }