palette(new Palette('cyan', 'magenta', 'yellow', 'black')) ); } public function testBreakpointsJson() { self::assertEquals( 'w_auto:breakpoints_' . ResponsiveBreakpointsConfig::DEFAULT_MIN_WIDTH . '_' . ResponsiveBreakpointsConfig::DEFAULT_MAX_WIDTH . '_' . Utils::bytesToKB(BreakpointsJson::DEFAULT_BYTES_STEP) . '_' . ResponsiveBreakpointsConfig::DEFAULT_MAX_IMAGES . ':json', (string)new BreakpointsJson() ); } public function testCropMode() { self::assertEquals( 'c_scale', (string)new CropMode('scale') ); } public function testGenericAction() { $genericAction = 'c_crop,e_sepia,f_auto,g_auto'; self::assertEquals( $genericAction, (string)Action::generic($genericAction) ); self::assertEquals( "a_auto_left,$genericAction,r_max", (string)Action::generic($genericAction)->addQualifier(RoundCorners::max()->addQualifier(Rotate::autoLeft())) ); } }