QuadraticTest.php 395 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Noa
  5. * Date: 10/08/2018
  6. * Time: 10:00
  7. */
  8. namespace MedievalInc\Quadratic;
  9. use PHPUnit\Framework\TestCase;
  10. class QuadraticTest extends TestCase
  11. {
  12. public function testSolve()
  13. {
  14. $quad = new Quadratic();
  15. $this->assertEquals([-3, 0.5], $quad->solve(2, 5, -3));
  16. $this->assertEquals([], $quad->solve(2, 5, 12));
  17. }
  18. }