Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
php-wmt-sujal committed Oct 8, 2019
2 parents f96e26c + a0c4a1a commit a82d0e8
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/AddTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Sujalpatel\Calculator\Tests;

use PHPUnit\Framework\TestCase;
use Sujalpatel\Calculator\Calculator;

class AddTest extends TestCase
{
/** @test */
public function addition()
{
$a = rand(1,9);
$b = rand(1,9);
$this->assertIsNumeric(Calculator::add($a,$b));
}
}
17 changes: 17 additions & 0 deletions tests/MultiTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Sujalpatel\Calculator\Tests;

use PHPUnit\Framework\TestCase;
use Sujalpatel\Calculator\Calculator;

class MultiTest extends TestCase
{
/** @test */
public function addition()
{
$a = rand(1,9);
$b = rand(1,9);
$this->assertIsNumeric(Calculator::multi($a,$b));
}
}
17 changes: 17 additions & 0 deletions tests/SubTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Sujalpatel\Calculator\Tests;

use PHPUnit\Framework\TestCase;
use Sujalpatel\Calculator\Calculator;

class SubTest extends TestCase
{
/** @test */
public function addition()
{
$a = rand(1,9);
$b = rand(1,9);
$this->assertIsNumeric(Calculator::sub($a,$b));
}
}

0 comments on commit a82d0e8

Please sign in to comment.