Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Commit

Permalink
Rename test variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrack committed Jul 19, 2017
1 parent 7808a8f commit c5f6fba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/DateTest.php
Expand Up @@ -18,19 +18,19 @@ protected function getTestSubjectType()

public function testDateTimeValuesAreBoundAsFormattedStrings()
{
$dateTimeLocal = new Date('dob');
$dateTimeLocal->defaultValue(new DateTime('12-04-1988 10:33'));
$date = new Date('dob');
$date->defaultValue(new DateTime('12-04-1988 10:33'));

$expected = '<input type="date" name="dob" value="1988-04-12">';
$this->assertSame($expected, $dateTimeLocal->render());
$this->assertSame($expected, $date->render());
}

public function testDateTimeDefaultValuesAreBoundAsFormattedStrings()
{
$dateTimeLocal = new Date('dob');
$dateTimeLocal->defaultValue(new DateTime('12-04-1988 10:33'));
$date = new Date('dob');
$date->defaultValue(new DateTime('12-04-1988 10:33'));

$expected = '<input type="date" name="dob" value="1988-04-12">';
$this->assertSame($expected, $dateTimeLocal->render());
$this->assertSame($expected, $date->render());
}
}

0 comments on commit c5f6fba

Please sign in to comment.