Esempio n. 1
0
 /**
  * @test if Planning instance can be set with an array
  * @dataProvider dateTimeProvider
  */
 public function isCorrectlySetUsingArray($id, $dateTimeString)
 {
     $planning = new Planning();
     $planning->exchangeArray(['id' => $id, 'date' => $dateTimeString]);
     $this->assertEquals($id, $planning->getId());
     $dateTime = new \DateTime($dateTimeString);
     $this->assertEquals($dateTime, $planning->getDate());
 }