Exemplo n.º 1
1
 /**
  * @covers \app\Domain\Entities\ClientEntity::getId
  * @covers \app\Domain\Entities\ClientEntity::getFirstName
  * @covers \app\Domain\Entities\ClientEntity::getLastName
  * @covers \app\Domain\Entities\ClientEntity::getEmail
  * @covers \app\Domain\Entities\ClientEntity::getAge
  * @covers \app\Domain\Entities\ClientEntity::toArray
  */
 public function testGetData()
 {
     $client = new ClientEntity();
     $client->setId("1234");
     $client->setFirstName("Silex");
     $client->setLastName("Project");
     $client->setEmail("*****@*****.**");
     $client->setAge('1');
     $expected = ['id' => $client->getId(), 'first_name' => $client->getFirstName(), 'last_name' => $client->getLastName(), 'email' => $client->getEmail(), 'age' => $client->getAge()];
     $this->assertEquals($expected, $client->toArray());
 }