public function testSetEndDate() { $tomorrow = Carbon::tomorrow(); $this->salary->setEndDate($tomorrow); $this->assertEquals($tomorrow, $this->tester->getPrivateProperty($this->salary, 'endDate')); }