AssertionTest.php 507 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace Test\Depo\UniTester;
  3. use Depo\UniTester\TestCase;
  4. class AssertionTest extends TestCase
  5. {
  6. protected function setUp(): void
  7. {
  8. }
  9. protected function tearDown(): void
  10. {
  11. }
  12. protected function execute(): void
  13. {
  14. $this->testAssertTrue();
  15. $this->testAssertEquals();
  16. }
  17. public function testAssertTrue()
  18. {
  19. $this->assertTrue(true);
  20. }
  21. public function testAssertEquals()
  22. {
  23. $this->assertEquals(10, 5 + 5);
  24. }
  25. }