以前从未测试过php单元-查看了多个堆栈溢出后仍然无法正常工作的情况。
<?php
namespace UnitTestFiles\Test;
use PHPUnit\Framework\TestCase;
class FirstTest extends TestCase {
public function FirstTest() {
$sscoretest1 = 10;
$sscoretest2 = $sscoretest1 / 20 * 100;
echo $sscoretest2;
require('test.php');
$this->expectOutputString('50');
}
}
?>