14 $y =
round( $expected * $height / $width );
16 $y2 =
round( $result * $height / $width );
19 "($width, $height, $max) wanted: {$expected}x$y, got: {z$result}x$y2" );
24 static::generateTestFitBoxWidthData( 50, 50, [
29 static::generateTestFitBoxWidthData( 366, 300, [
34 static::generateTestFitBoxWidthData( 300, 366, [
39 static::generateTestFitBoxWidthData( 100, 400, [
63 foreach ( $tests as $max => $expected ) {
64 $result[] = [ $width, $height, $max, $expected ];
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
namespace being checked & $result