igmoweb
8/21/2018 - 11:57 AM

unit-test-2.php

<?php

function convert( $number ) {
	if ( $number > 0 ) {
		return $number * 2;
	}
	return $number / 2;
}