$files ]); $this->assertTrue($file->isValid()); foreach ($files as $file) { unlink($file); } } public function testIsNotValid() { $file = new Files([ 'files' => [ '/file1', '/file2', ], ]); $this->assertFalse($file->isValid()); } public function testInvalidConstruct() { $this->expectException(BackupException::class); $file = new Files([]); } }