Answer the question
In order to leave comments, you need to log in
How to create a phpUnit test for such a class?
Good afternoon, please tell me how to create a phpunit test for this class, if not difficult? I'm new to this ( https://pastebin.com/udQQL5hk ) I was tormented for half a night and could not figure out how to build this test correctly
Answer the question
In order to leave comments, you need to log in
class TestTest {
public function testGetExact() {
$str = '*строка для тестирования*';
$expected = '*посчитанный результат*';
$this->assertEquals($expected, Test::getExact($str));
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question