Skip to content

Commit

Permalink
Improve Memory unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed May 17, 2022
1 parent 59e9ca5 commit 73c8273
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/core/Model/MemoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace WBW\Library\Core\Tests\Model;

use JsonSerializable;
use WBW\Library\Core\Model\Memory;
use WBW\Library\Core\Tests\AbstractTestCase;

Expand Down Expand Up @@ -134,11 +135,13 @@ public function test__construct(): void {

$obj = new Memory();

$this->assertNull($obj->getAvailable());
$this->assertNull($obj->getBuffCache());
$this->assertNull($obj->getFree());
$this->assertNull($obj->getShared());
$this->assertInstanceOf(JsonSerializable::class, $obj);

$this->assertNull($obj->getTotal());
$this->assertNull($obj->getUsed());
$this->assertNull($obj->getFree());
$this->assertNull($obj->getShared());
$this->assertNull($obj->getBuffCache());
$this->assertNull($obj->getAvailable());
}
}

0 comments on commit 73c8273

Please sign in to comment.