public function testSaveWithPng() { $savingPath = $this->directory . 'saving-test.png'; $this->object->open($this->directory . 'test.png'); $this->object->resize(50, 50); $this->assertTrue($this->object->save($savingPath)); unlink($savingPath); }