public crop ( $topLeftX, $topLeftY, $bottomRightX, $bottomRightY ) |
public function crop($topLeftX, $topLeftY, $bottomRightX, $bottomRightY)
{
$this->crop = "{$topLeftX}x{$topLeftY}:{$bottomRightX}x{$bottomRightY}";
}
public function testCrop() { $commandSet = new CommandSet(); $commandSet->crop(1, 2, 3, 4); $this->assertEquals(array('1x2:3x4'), $commandSet->toArray()); }