From 92dc9b9110a98c6e0da656fac714b72e426c87a6 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Mon, 8 May 2023 12:57:26 +0300 Subject: [PATCH] Testing with the failure. --- tests/SimpleTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/SimpleTest.php b/tests/SimpleTest.php index bd42613..f22c7fc 100644 --- a/tests/SimpleTest.php +++ b/tests/SimpleTest.php @@ -13,6 +13,14 @@ class SimpleTest extends TestCase $this->assertEquals(5, $result); } + public function testSubtractFail() + { + $simple = new Simple(); + $result = $simple->subtract(4, 2); + // 2 is the right result, therefore I chose not 2. + $this->assertEquals(1, $result); + } + public function testSubtract() { $simple = new Simple();