Created
April 2, 2021 13:48
-
-
Save vanbrabantf/7de7f8c400094e7448a29aa5989015a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Tests\Car\Rent; | |
use Car\Rent\DateRangePriceCalculator; | |
class DateRangePriceCalculatorTest extends TestCase | |
{ | |
/** | |
* @test | |
*/ | |
public function it_calculates_a_price_for_a_date_range() | |
{ | |
$dateRangeCaluclator = new DateRangePriceCalculator(); | |
$price = $dateRangeCaluclator->calculate(2, 50); | |
$this->assertSame(100, $price); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment