Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: add example tests
  • Loading branch information
wazabii8 committed Mar 9, 2026
commit 5e29cf6a01a94cc2e07e4007485a59c5d4098da0
24 changes: 24 additions & 0 deletions tests/unitary-test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* This is just a test example using MaplePHP Unitary testing framework
* Read more: https://maplephp.github.io/Unitary/
*/

use MaplePHP\Unitary\{Expect, TestCase};

group("Your test subject", function (TestCase $case) {

// Test example 1 - simple
$case->expect("YourValue")->isEqualTo("YourValue");

// Test example 2 - Encapsulate
$case->describe("Validate a string value")
->expect(function (Expect $expect) {

$expect->expect("YourValue")
->isLength(9)
->isString()
->assert("Value is not valid");
});

});