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 | |
$timeSeries = []; | |
// Using Carbon | |
$start = \Carbon\Carbon::create(1983, 9, 1, 0, 0, 0); | |
$end = \Carbon\Carbon::create(2050, 1, 1, 0, 0,0); | |
while ($start->format('Y-m-d') < $end->format('Y-m-d')) { | |
$start->addDay(); |
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 | |
class CalculatorTest extends TestCase | |
{ | |
/** @test */ | |
public function it_adds_two_numbers() | |
{ | |
$calculator = new Calculator(); | |
$total = $calculator->sum(1, 2); | |
$this->assertSame(3, $total); |
OlderNewer