-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from brewerwall/feature/boil
Boil Rate
- Loading branch information
Showing
4 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace Unitz\Rate; | ||
|
||
class Boil extends Flow | ||
{ | ||
// Boil Rate is the same as Flow Rate in the sense that it is a Volume per Time in evaporation. | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Tests\Rate; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use Unitz\Rate\Boil; | ||
use Unitz\Time; | ||
use Unitz\Volume; | ||
|
||
class BoilRate extends TestCase | ||
{ | ||
public function testFlowReturnsCorrectValue(): void | ||
{ | ||
$boil = new Boil(new Volume(gallon: 3), new Time(minute: 1)); | ||
$this->assertEquals(new Volume(gallon: 3), $boil->getGallonsPerMinute()); | ||
} | ||
} |
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