Beispiel #1
0
 /**
  * @test
  * @param string $input
  * @param int $expected
  * @dataProvider getTestGetTotalSquareFeetTestData
  */
 public function testGetTotalSquareFeet(\string $input, \int $expected)
 {
     $result = $this->Day2->getTotalSquareFeet($input);
     $this->assertEquals($expected, $result);
 }
Beispiel #2
0
 public function testTotalSquareFeetWith2x3x4And1x1x10()
 {
     $this->day2->addDimensions('2x3x4
     1x1x10');
     $this->assertEquals(101, $this->day2->getTotalSquareFeet());
 }