serverChangesGet('localhost', null, 'submitted'); $not_submitted = array_filter($changes_commands, function($c) { return $c->getStatus() != 'submitted'; }); assert(count($not_submitted) == 0);