PHPUnit test adapted