Skip to content

Commit 7438bd6

Browse files
committed
adding new test and fix test
1 parent c9a4574 commit 7438bd6

4 files changed

Lines changed: 31 additions & 4 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App;
3+
namespace App\Examples;
44

55
class Auth
66
{
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App;
3+
namespace App\Examples;
44

55
class User
66
{

php-unit/tests/ClassTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
namespace Tests;
44

5-
use App\Auth;
5+
use App\Examples\Auth;
66
use Exception;
77
use PHPUnit\Framework\TestCase;
88
use App\Exceptions\RedisException;
99
use App\Exceptions\PostgreSqlException;
10-
use App\User;
10+
use App\Examples\User;
1111

1212
class ClassTest extends TestCase
1313
{

php-unit/tests/IntegerTest.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace Tests;
4+
5+
use PHPUnit\Framework\TestCase;
6+
7+
class IntegerTest extends TestCase
8+
{
9+
public function testIfGreaterThan()
10+
{
11+
// Failure if number not greater than with another number
12+
// $this->assertGreaterThan($number2, $number1);
13+
$number1 = 10;
14+
$number2 = 20;
15+
16+
$this->assertGreaterThan($number1, $number2);
17+
}
18+
19+
public function testIfNumberGreaterThanOrEqual()
20+
{
21+
// Failure if number not equal or greater than with another number
22+
// $this->assertGreaterThanOrEqual(50, 100);
23+
24+
$this->assertGreaterThanOrEqual(10, 10);
25+
$this->assertGreaterThanOrEqual(100, 1000);
26+
}
27+
}

0 commit comments

Comments
 (0)